Response.read() [file like object]

This commit is contained in:
Kenneth Reitz
2011-03-31 04:47:02 -04:00
parent e350bea167
commit f2b04f94ca
+3 -1
View File
@@ -217,7 +217,7 @@ class Request(object):
def read(self):
return self.content
return self.response.read()
class Response(object):
"""The :class:`Request` object. All :class:`Request` objects contain a
@@ -249,6 +249,8 @@ class Response(object):
if self.error:
raise self.error
def read(self):
return self.content
class AuthManager(object):