mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
shutil._copyfileobj_readinto: tiny speedup (#92377)
This commit is contained in:
parent
f20a6a54fb
commit
87b9b4e060
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue