bpo-33671 fix orphaned comment in shutil.copyfileobj (GH-27516)
https://github.com/python/cpython/commit/b08c48e61745666df9aeee97d8bddbf1e55... commit: b08c48e61745666df9aeee97d8bddbf1e5550627 branch: main author: Anthony Sottile <asottile@umich.edu> committer: merwok <merwok@netwok.org> date: 2021-07-31T15:15:45-04:00 summary: bpo-33671 fix orphaned comment in shutil.copyfileobj (GH-27516) files: M Lib/shutil.py diff --git a/Lib/shutil.py b/Lib/shutil.py index 2cb5ef848c278..273a7d2f4324a 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:
participants (1)
-
merwok