We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2792505 commit cf0c55aCopy full SHA for cf0c55a
1 file changed
test_remotezip.py
@@ -29,7 +29,8 @@ def serve(self, request, context):
29
from_byte, to_byte = rz.RemoteFetcher.parse_range_header(request.headers['Range'])
30
with open(self._fname, 'rb') as f:
31
if from_byte < 0:
32
- size = f.seek(0, 2)
+ f.seek(0, 2)
33
+ size = f.tell()
34
f.seek(max(size + from_byte, 0), 0)
35
init_pos = f.tell()
36
content = f.read(min(size, -from_byte))
0 commit comments