From 52cb3827ccc1a3151a579f81199433588f7ee442 Mon Sep 17 00:00:00 2001 From: rmorotti Date: Mon, 1 Jul 2024 10:44:05 +0100 Subject: [PATCH] reformat 1048576 as 1024 * 1024 --- src/pip/_internal/operations/install/wheel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pip/_internal/operations/install/wheel.py b/src/pip/_internal/operations/install/wheel.py index a33d6faf304..c7d9c09cc65 100644 --- a/src/pip/_internal/operations/install/wheel.py +++ b/src/pip/_internal/operations/install/wheel.py @@ -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):