Skip to content
Myr

Retrieve kwargs.keys() just once.

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

authored by Jian Li · committed by Jian Li · parent 68edcd1 · Browse files · 1 file+2 added−1 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−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:requests/sessions.py+2 added-1 removed
58 unmodified lines
59 return original_key60 return new_key6162 kwargs = default_kwarg.copy()63 original_keys = kwargs.keys()64 for key, value in local_kwarg.items():64 kwargs[get_original_key(kwargs.keys(), key)] = value65 kwargs[get_original_key(original_keys, key)] = value6667 # Remove keys that are set to None.68 for (k, v) in local_kwarg.items():69 if v is None:
339 unmodified lines