From: Kenneth Reitz Date: Sun, 21 Aug 2011 11:01:29 +0000 (-0400) Subject: no need to set content X-Git-Tag: v0.6.4^2~5^2~5^2~21^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c8110222a532821d27b0ade3ebdd7d0cb9545f80;p=services%2Fpython-requests.git no need to set content avoids 2.5 workaround --- diff --git a/requests/models.py b/requests/models.py index 03b853c..262a564 100644 --- a/requests/models.py +++ b/requests/models.py @@ -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: