mirror of https://github.com/python/cpython
shutil._copyfileobj_readinto: tiny speedup (#92377)
This commit is contained in:
parent
f20a6a54fb
commit
87b9b4e060
|
@ -182,7 +182,8 @@ def _copyfileobj_readinto(fsrc, fdst, length=COPY_BUFSIZE):
|
|||
break
|
||||
elif n < length:
|
||||
with mv[:n] as smv:
|
||||
fdst.write(smv)
|
||||
fdst_write(smv)
|
||||
break
|
||||
else:
|
||||
fdst_write(mv)
|
||||
|
||||
|
|
Loading…
Reference in New Issue