projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1143d42
)
no need to set content
author
Kenneth Reitz
<me@kennethreitz.com>
Sun, 21 Aug 2011 11:01:29 +0000
(07:01 -0400)
committer
Kenneth Reitz
<me@kennethreitz.com>
Sun, 21 Aug 2011 11:01:29 +0000
(07:01 -0400)
avoids 2.5 workaround
requests/models.py
patch
|
blob
|
history
diff --git
a/requests/models.py
b/requests/models.py
index
03b853c
..
262a564
100644
(file)
--- 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: