Skip to content

Commit b08c48e

Browse files
authored
bpo-33671 fix orphaned comment in shutil.copyfileobj (GH-27516)
1 parent be4cb90 commit b08c48e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/shutil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@ def _copyfileobj_readinto(fsrc, fdst, length=COPY_BUFSIZE):
188188

189189
def copyfileobj(fsrc, fdst, length=0):
190190
"""copy data from file-like object fsrc to file-like object fdst"""
191-
# Localize variable access to minimize overhead.
192191
if not length:
193192
length = COPY_BUFSIZE
193+
# Localize variable access to minimize overhead.
194194
fsrc_read = fsrc.read
195195
fdst_write = fdst.write
196196
while True:

0 commit comments

Comments
 (0)