summaryrefslogtreecommitdiff
path: root/Lib/http
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2009-04-01 02:35:56 +0000
committerJeremy Hylton <jeremy@alum.mit.edu>2009-04-01 02:35:56 +0000
commit9c34d27db906d887f0a48276828d6d508287c46d (patch)
treedc3aa609cb70e0147cce54c3fe54501297b97c2e /Lib/http
parent47cca622ad154ff1763cd28b9298fc4cc9a95c77 (diff)
downloadcpython-9c34d27db906d887f0a48276828d6d508287c46d.tar.gz
An HTTPResponse is, by its nature, readable.
Diffstat (limited to 'Lib/http')
-rw-r--r--Lib/http/client.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/http/client.py b/Lib/http/client.py
index 4885f5a6ff..cef942f694 100644
--- a/Lib/http/client.py
+++ b/Lib/http/client.py
@@ -469,6 +469,9 @@ class HTTPResponse(io.RawIOBase):
def flush(self):
self.fp.flush()
+ def readable(self):
+ return True
+
# End of "raw stream" methods
def isclosed(self):