diff options
author | Guido van Rossum <guido@python.org> | 2007-08-27 18:10:06 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-27 18:10:06 (GMT) |
commit | 700bd926778b06bfd955ace944b863c722b40872 (patch) | |
tree | 9058c7f6f47587749ec6e62430186913b097a502 /Lib/urllib2.py | |
parent | 5abbf750a2b7af030ef53880f428e507bde74b62 (diff) | |
download | cpython-700bd926778b06bfd955ace944b863c722b40872.zip cpython-700bd926778b06bfd955ace944b863c722b40872.tar.gz cpython-700bd926778b06bfd955ace944b863c722b40872.tar.bz2 |
Fix a few places that broke due to a recent change to io.py.
Diffstat (limited to 'Lib/urllib2.py')
-rw-r--r-- | Lib/urllib2.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/urllib2.py b/Lib/urllib2.py index 658bc3d..1defbe9 100644 --- a/Lib/urllib2.py +++ b/Lib/urllib2.py @@ -1079,6 +1079,8 @@ class AbstractHTTPHandler(BaseHandler): # Add some fake methods to the reader to satisfy BufferedReader. r.readable = lambda: True r.writable = r.seekable = lambda: False + r._checkReadable = lambda: True + r._checkWritable = lambda: False fp = io.BufferedReader(r) resp = addinfourl(fp, r.msg, req.get_full_url()) |