Skip to content
Myr

cleanups

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 873d128 · Browse files · 1 file+1 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

1 file+1 added−3 removed

  • other:+1 added−3 removed

1 file+1 added−3 removed

modified:requests/models.py+1 added-3 removed
264 unmodified lines
265 version of that.266267 Otherwise, assumes the data is already encoded appropriately, and268 returns it twice.269269 """270271 if hasattr(data, 'items'):272 result = []273 for k, vs in data.items():274 for v in isinstance(vs, list) and vs or [vs]:
99 unmodified lines
374 why = Timeout(why)375376 self._build_response(why, is_error=True)377378378 else:379 self._build_response(resp)380 self.response.ok = True381
2 unmodified lines
384385 return self.sent386387389388class Response(object):389 """The core :class:`Response <models.Response>` object. All390 :class:`Request <models.Request>` objects contain a391 :class:`response <models.Response>` attribute, which is an instance
250 unmodified lines