Skip to content
Myr

fix bytes

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 ec109c9 · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:requests/utils.py+2 added-2 removed
16 unmodified lines
17import zlib1819from .compat import parse_http_list as _parse_list_header20from .compat import quote, unquote, cookielib, SimpleCookie, is_py221from .compat import basestring21from .compat import basestring, bytes222324def dict_from_string(s):25 """Returns a MultiDict with Cookies."""
368 unmodified lines
394 for chunk in iterator:395 yield chunk396 else:397 # Make sure everything has been returned from the decompression object398 buf = dec.decompress('')398 buf = dec.decompress(bytes())399 rv = buf + dec.flush()400 if rv:401 yield rv402
43 unmodified lines