Skip to content

Commit

Permalink
reformat 1048576 as 1024 * 1024
Browse files Browse the repository at this point in the history
  • Loading branch information
rmmancom committed Jul 1, 2024
1 parent e2577ea commit 52cb382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pip/_internal/operations/install/wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def save(self) -> None:
with open(self.dest_path, "wb") as dest:
if zipinfo.file_size > 0:
with self._zip_file.open(zipinfo) as f:
blocksize = min(zipinfo.file_size, 1_048_576)
blocksize = min(zipinfo.file_size, 1024 * 1024)
shutil.copyfileobj(f, dest, blocksize)

if zip_item_is_executable(zipinfo):
Expand Down

0 comments on commit 52cb382

Please sign in to comment.