From: Anthony Sottile Date: Sat, 31 Jul 2021 19:15:45 +0000 (-0400) Subject: bpo-33671 fix orphaned comment in shutil.copyfileobj (GH-27516) X-Git-Tag: v3.11.0a1~500 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b08c48e61745666df9aeee97d8bddbf1e5550627;p=thirdparty%2FPython%2Fcpython.git bpo-33671 fix orphaned comment in shutil.copyfileobj (GH-27516) --- diff --git a/Lib/shutil.py b/Lib/shutil.py index 2cb5ef848c27..273a7d2f4324 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: