diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2009-04-01 02:35:56 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2009-04-01 02:35:56 (GMT) |
commit | a7cff0230b0f9a952798f128831a7722b9a17c4c (patch) | |
tree | 3aa4576fe4b32459e2e5bae9b503433ac09adc62 | |
parent | 6af6d264e27e981beb63916e3a92a8aa1738d36a (diff) | |
download | cpython-a7cff0230b0f9a952798f128831a7722b9a17c4c.zip cpython-a7cff0230b0f9a952798f128831a7722b9a17c4c.tar.gz cpython-a7cff0230b0f9a952798f128831a7722b9a17c4c.tar.bz2 |
An HTTPResponse is, by its nature, readable.
-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 4885f5a..cef942f 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): |