summaryrefslogtreecommitdiffstats
path: root/Lib/io.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-02-11 00:39:14 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-02-11 00:39:14 (GMT)
commitb353c12a9caa20e90466af6a8f17a227b72e4f23 (patch)
tree324c9dde570196bd47044f262e7387aef652919a /Lib/io.py
parent651453ace09e6677d8fea66d3cbbf8614b109f16 (diff)
downloadcpython-b353c12a9caa20e90466af6a8f17a227b72e4f23.zip
cpython-b353c12a9caa20e90466af6a8f17a227b72e4f23.tar.gz
cpython-b353c12a9caa20e90466af6a8f17a227b72e4f23.tar.bz2
Issue #4631: Fix urlopen() result when an HTTP response uses chunked encoding.
Diffstat (limited to 'Lib/io.py')
-rw-r--r--Lib/io.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/io.py b/Lib/io.py
index 439ca95..c2c1067 100644
--- a/Lib/io.py
+++ b/Lib/io.py
@@ -491,7 +491,6 @@ class IOBase(metaclass=abc.ABCMeta):
terminator(s) recognized.
"""
# For backwards compatibility, a (slowish) readline().
- self._checkClosed()
if hasattr(self, "peek"):
def nreadahead():
readahead = self.peek(1)
@@ -533,7 +532,6 @@ class IOBase(metaclass=abc.ABCMeta):
lines will be read if the total size (in bytes/characters) of all
lines so far exceeds hint.
"""
- self._checkClosed()
if hint is None or hint <= 0:
return list(self)
n = 0