Skip to content
Myr

dict_to_sequence

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 8d34538 · Browse files · 1 file+9 added−0 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+9 added−0 removed

  • other:+9 added−0 removed

1 file+9 added−0 removed

modified:requests/sessions.py+9 added
14 unmodified lines
15from .utils import header_expand16from .packages.urllib3.poolmanager import PoolManager171819def dict_to_sequence(d):20 """Returns an internal sequence dictionary update."""2122 if hasattr(d, 'items'):23 d = d.items()2425 return d262728def merge_kwargs(local_kwarg, default_kwarg):29 """Merges kwarg dictionaries.3031 If a local key in the dictionary is set to None, it will be removed.
278 unmodified lines