diff options
author | Anthony Sottile <asottile@umich.edu> | 2021-07-31 19:15:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-31 19:15:45 (GMT) |
commit | b08c48e61745666df9aeee97d8bddbf1e5550627 (patch) | |
tree | f3e1f113471727d15420badca5d94be4d878e14f | |
parent | be4cb9089aaf58d5f90da5f9fa66dc3c6763b5a2 (diff) | |
download | cpython-b08c48e61745666df9aeee97d8bddbf1e5550627.zip cpython-b08c48e61745666df9aeee97d8bddbf1e5550627.tar.gz cpython-b08c48e61745666df9aeee97d8bddbf1e5550627.tar.bz2 |
bpo-33671 fix orphaned comment in shutil.copyfileobj (GH-27516)
-rw-r--r-- | Lib/shutil.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |