Skip to content
Myr

path fixes

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 0b9a2a1 · Browse files · 2 files+7 added−3 removed
This commit

State

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

Diff stats

2 files+7 added−3 removed

  • other:+7 added−3 removed

2 files+7 added−3 removed

modified:requests/models.py+6 added-2 removed
189 unmodified lines
190 response.error = getattr(resp, 'error', None)191192 # Save original response for later.193 response.raw = resp194 if isinstance(self.full_url, bytes):194 response.url = self.full_url.decode('utf-8')195 response.url = self.full_url.decode('utf-8')196 else:197 response.url = self.full_url198199 return response200201 history = []
537 unmodified lines
739 if self._content_consumed:740 raise RuntimeError(741 'The content for this response was already consumed')742740 self._content = bytes('').join(self.iter_content()) or None743 self._content = bytes().join(self.iter_content()) or None744 # print repr(self._content)745 except AttributeError:746 self._content = None747748 self._content_consumed = True
50 unmodified lines
modified:Makefile+1 added-1 removed
6 unmodified lines
7test:8 nosetests --with-color ./tests/*910lazy:11 nosetests --with-color test_requests.py11 nosetests --with-color tests/test_requests.py1213server:14 gunicorn httpbin:app --bind=0.0.0.0:7077 &15
20 unmodified lines