Skip to content
Myr

no need to set content

Before adoption: this commit came in with the history the project adopted, so no landing records it.

avoids 2.5 workaround

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 1143d42 · Browse files · 1 file+1 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−6 removed

  • other:+1 added−6 removed

1 file+1 added−6 removed

modified:requests/models.py+1 added-6 removed
440 unmodified lines
441 @property442 def content(self):443 """Content of the response, in bytes or unicode444 (if available)."""445 445446 if self._content is not None:447 return self._content448449 # Read the contents.
12 unmodified lines
462463 return self._content464465466 @content.setter467 def content(self, value):468 self._content = value469470466 def raise_for_status(self):467 """Raises stored :class:`HTTPError` or :class:`URLError`, if one occured."""468 if self.error:469 raise self.error
177 unmodified lines