no need to set content
authorKenneth Reitz <me@kennethreitz.com>
Sun, 21 Aug 2011 11:01:29 +0000 (07:01 -0400)
committerKenneth Reitz <me@kennethreitz.com>
Sun, 21 Aug 2011 11:01:29 +0000 (07:01 -0400)
avoids 2.5 workaround

requests/models.py

index 03b853c..262a564 100644 (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: