diff options
Diffstat (limited to 'Lib/urllib2.py')
| -rw-r--r-- | Lib/urllib2.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/urllib2.py b/Lib/urllib2.py index 9ec8b9b..d93cba6 100644 --- a/Lib/urllib2.py +++ b/Lib/urllib2.py @@ -1003,13 +1003,13 @@ class AbstractHTTPHandler(BaseHandler): # for Windows. That adapter calls recv(), so delegate recv() # to read(). This weird wrapping allows the returned object to # have readline() and readlines() methods. - + # XXX It might be better to extract the read buffering code # out of socket._fileobject() and into a base class. - + r.recv = r.read fp = socket._fileobject(r) - + resp = addinfourl(fp, r.msg, req.get_full_url()) resp.code = r.status resp.msg = r.reason |
