mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
Fix typo.
This commit is contained in:
parent
812d8341ea
commit
a327000bdd
1 changed files with 2 additions and 1 deletions
|
@ -636,7 +636,7 @@ class BufferedReader(_BufferedIOMixin):
|
||||||
"""Read n bytes.
|
"""Read n bytes.
|
||||||
|
|
||||||
Returns exactly n bytes of data unless the underlying raw IO
|
Returns exactly n bytes of data unless the underlying raw IO
|
||||||
stream reaches EOF of if the call would block in non-blocking
|
stream reaches EOF or if the call would block in non-blocking
|
||||||
mode. If n is negative, read until EOF or until read() would
|
mode. If n is negative, read until EOF or until read() would
|
||||||
block.
|
block.
|
||||||
"""
|
"""
|
||||||
|
@ -647,6 +647,7 @@ class BufferedReader(_BufferedIOMixin):
|
||||||
to_read = max(self.buffer_size,
|
to_read = max(self.buffer_size,
|
||||||
n if n is not None else 2*len(self._read_buf))
|
n if n is not None else 2*len(self._read_buf))
|
||||||
current = self.raw.read(to_read)
|
current = self.raw.read(to_read)
|
||||||
|
print(to_read, repr(current))
|
||||||
if current in (b"", None):
|
if current in (b"", None):
|
||||||
nodata_val = current
|
nodata_val = current
|
||||||
break
|
break
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue