Skip to content

Commit 1c15839

Browse files
committed
Use READ_BUFFER_SIZE in python -m gzip command line application
1 parent c90096f commit 1c15839

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/gzip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ def main():
647647
f = builtins.open(arg, "rb")
648648
g = open(arg + ".gz", "wb")
649649
while True:
650-
chunk = f.read(io.DEFAULT_BUFFER_SIZE)
650+
chunk = f.read(READ_BUFFER_SIZE)
651651
if not chunk:
652652
break
653653
g.write(chunk)

0 commit comments

Comments
 (0)