bpo-33671 fix orphaned comment in shutil.copyfileobj (GH-27516)

This commit is contained in:
Anthony Sottile 2021-07-31 15:15:45 -04:00 committed by GitHub
parent be4cb9089a
commit b08c48e617
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -188,9 +188,9 @@ def _copyfileobj_readinto(fsrc, fdst, length=COPY_BUFSIZE):
def copyfileobj(fsrc, fdst, length=0): def copyfileobj(fsrc, fdst, length=0):
"""copy data from file-like object fsrc to file-like object fdst""" """copy data from file-like object fsrc to file-like object fdst"""
# Localize variable access to minimize overhead.
if not length: if not length:
length = COPY_BUFSIZE length = COPY_BUFSIZE
# Localize variable access to minimize overhead.
fsrc_read = fsrc.read fsrc_read = fsrc.read
fdst_write = fdst.write fdst_write = fdst.write
while True: while True: