Thanks to visit codestin.com Credit goes to github.com
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 452add0 commit 138ad50Copy full SHA for 138ad50
1 file changed
Lib/bz2.py
@@ -323,6 +323,7 @@ def readline(self, size=-1):
323
raise TypeError("Integer argument expected")
324
size = size.__index__()
325
with self._lock:
326
+ self._check_can_read()
327
# Shortcut for the common case - the whole line is in the buffer.
328
if size < 0:
329
end = self._buffer.find(b"\n", self._buffer_offset) + 1
0 commit comments