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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a7cff0230b0f9a952798f128831a7722b9a17c4c;p=thirdparty%2FPython%2Fcpython.git An HTTPResponse is, by its nature, readable. --- diff --git a/Lib/http/client.py b/Lib/http/client.py index 4885f5a6ffa0..cef942f6942c 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):