diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2009-04-01 02:35:56 +0000 |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2009-04-01 02:35:56 +0000 |
commit | 9c34d27db906d887f0a48276828d6d508287c46d (patch) | |
tree | dc3aa609cb70e0147cce54c3fe54501297b97c2e /Lib/http | |
parent | 47cca622ad154ff1763cd28b9298fc4cc9a95c77 (diff) | |
download | cpython-9c34d27db906d887f0a48276828d6d508287c46d.tar.gz |
An HTTPResponse is, by its nature, readable.
Diffstat (limited to 'Lib/http')
-rw-r--r-- | Lib/http/client.py | 3 |
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): |