python-httpfile 0.0.1.1__tar.gz → 0.0.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-httpfile
3
- Version: 0.0.1.1
3
+ Version: 0.0.1.2
4
4
  Summary: Python httpfile classes.
5
5
  Home-page: https://github.com/ChenyangGao/web-mount-packs/tree/main/python-module/python-httpfile
6
6
  License: MIT
@@ -22,7 +22,7 @@ from warnings import warn
22
22
  from aiohttp import ClientSession
23
23
  from filewrap import bio_skip_iter
24
24
  from http_response import get_filename, get_length, get_range, get_total_length, is_chunked, is_range_request
25
- from iterutils import foreach
25
+ from iterutils import through
26
26
  from property import funcproperty
27
27
  from requests import Session
28
28
  from urlopen import urlopen
@@ -294,7 +294,7 @@ class HTTPFileReader(RawIOBase, BinaryIO):
294
294
  if old_pos == pos:
295
295
  return pos
296
296
  if pos > old_pos and pos - old_pos <= self.seek_threshold:
297
- foreach(bio_skip_iter(self, pos - old_pos))
297
+ through(bio_skip_iter(self, pos - old_pos))
298
298
  else:
299
299
  self.reconnect(pos)
300
300
  return pos
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "python-httpfile"
3
- version = "0.0.1.1"
3
+ version = "0.0.1.2"
4
4
  description = "Python httpfile classes."
5
5
  authors = ["ChenyangGao <wosiwujm@gmail.com>"]
6
6
  license = "MIT"