mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
This reverts commit e1c4ba9288
.
This commit is contained in:
parent
c07ac3c86a
commit
3ebe3d7688
2 changed files with 0 additions and 5 deletions
|
@ -1062,9 +1062,6 @@ class BufferedReader(_BufferedIOMixin):
|
|||
if chunk is None:
|
||||
return buf[pos:] or None
|
||||
else:
|
||||
# Avoid slice + copy if there is no data in buf
|
||||
if not buf:
|
||||
return chunk
|
||||
return buf[pos:] + chunk
|
||||
chunks = [buf[pos:]] # Strip the consumed bytes.
|
||||
current_size = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue