Skip to content
Myr

remove is_error

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parent f5a2b75 · Browse files · 1 file+1 added−4 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−4 removed

  • other:+1 added−4 removed

1 file+1 added−4 removed

modified:requests/models.py+1 added-4 removed
142 unmodified lines
143 def __repr__(self):144 return '<Request [%s]>' % (self.method)145146147 def _build_response(self, resp, is_error=False):147 def _build_response(self, resp):148 """Build internal :class:`Response <Response>` object149 from given response.150 """151
31 unmodified lines
183184 # Save original response for later.185 response.raw = resp186187 if is_error:188 response.error = resp189187 response.url = self.full_url.decode('utf-8')188189 return response190
553 unmodified lines