]> granicus.if.org Git - python/commitdiff
An HTTPResponse is, by its nature, readable.
authorJeremy Hylton <jeremy@alum.mit.edu>
Wed, 1 Apr 2009 02:35:56 +0000 (02:35 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Wed, 1 Apr 2009 02:35:56 +0000 (02:35 +0000)
Lib/http/client.py

index 4885f5a6ffa0b9c71b12534c5841099dd5fca0fa..cef942f6942cf59eb2812a7aac04393d52331243 100644 (file)
@@ -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):