From 9c34d27db906d887f0a48276828d6d508287c46d Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Wed, 1 Apr 2009 02:35:56 +0000 Subject: An HTTPResponse is, by its nature, readable. --- Lib/http/client.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Lib/http') 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): -- cgit v1.2.1