Skip to content

Commit

Permalink
fix wheel errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicexplorer committed Aug 9, 2023
1 parent afd5746 commit 1263f8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pip/_internal/network/lazy_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,10 @@ def read(self, size: int = -1) -> bytes:
cur = self.tell()
if size < 0:
assert cur <= self._length
size = self._length - cur
download_size = self._length - cur
else:
size = max(size, self._chunk_size)
stop = min(cur + size, self._length)
download_size = max(size, self._chunk_size)
stop = min(cur + download_size, self._length)
self._download(cur, stop - 1)
return self._file.read(size)

Expand Down

0 comments on commit 1263f8d

Please sign in to comment.