no need to set content

avoids 2.5 workaround
This commit is contained in:
Kenneth Reitz
2011-08-21 07:01:29 -04:00
parent 1143d4237f
commit c8110222a5
+1 -6
View File
@@ -442,7 +442,7 @@ class Response(object):
def content(self):
"""Content of the response, in bytes or unicode
(if available)."""
if self._content is not None:
return self._content
@@ -463,11 +463,6 @@ class Response(object):
return self._content
@content.setter
def content(self, value):
self._content = value
def raise_for_status(self):
"""Raises stored :class:`HTTPError` or :class:`URLError`, if one occured."""
if self.error: