Fix a few places that broke due to a recent change to io.py.

This commit is contained in:
Guido van Rossum 2007-08-27 18:10:06 +00:00
parent 5abbf750a2
commit 700bd92677
2 changed files with 3 additions and 1 deletions

View file

@ -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())