From: Jeremy Hylton Date: Wed, 1 Apr 2009 02:35:56 +0000 (+0000) Subject: An HTTPResponse is, by its nature, readable. X-Git-Tag: v3.1a2~110 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a7cff0230b0f9a952798f128831a7722b9a17c4c;p=python An HTTPResponse is, by its nature, readable. --- 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):