From b08c48e61745666df9aeee97d8bddbf1e5550627 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sat, 31 Jul 2021 15:15:45 -0400 Subject: bpo-33671 fix orphaned comment in shutil.copyfileobj (GH-27516) --- Lib/shutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/shutil.py b/Lib/shutil.py index 2cb5ef8..273a7d2 100644 --- a/Lib/shutil.py +++ b/Lib/shutil.py @@ -188,9 +188,9 @@ def _copyfileobj_readinto(fsrc, fdst, length=COPY_BUFSIZE): def copyfileobj(fsrc, fdst, length=0): """copy data from file-like object fsrc to file-like object fdst""" - # Localize variable access to minimize overhead. if not length: length = COPY_BUFSIZE + # Localize variable access to minimize overhead. fsrc_read = fsrc.read fdst_write = fdst.write while True: -- cgit v0.12