mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
no need to set content
avoids 2.5 workaround
This commit is contained in:
+1
-6
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user