mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Fix a few places that broke due to a recent change to io.py.
This commit is contained in:
parent
5abbf750a2
commit
700bd92677
2 changed files with 3 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue