We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8690397 commit 2f7fbb2Copy full SHA for 2f7fbb2
Lib/_pyio.py
@@ -2523,12 +2523,10 @@ def read(self, size=None):
2523
size = size_index()
2524
decoder = self._decoder or self._get_decoder()
2525
if size < 0:
2526
-
2527
chunk = self.buffer.read()
2528
if chunk is None:
2529
raise BlockingIOError("Unexpected None encountered. This may be due to non-blocking I/O or an issue "
2530
"with the underlying I/O implementation.")
2531
2532
# Read everything.
2533
result = (self._get_decoded_chars() +
2534
decoder.decode(chunk, final=True))
0 commit comments