Skip to content
Myr

Syntax fix for Python 2.5

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

authored by Dan Head · committed by Dan Head · parent 4f6fc98 · Browse files · 1 file+3 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+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:requests/async.py+3 added-1 removed
30 unmodified lines
31def _patched(f):32 """Patches a given API function to not send."""3334 def wrapped(*args, **kwargs):35 return f(*args, return_response=False, **kwargs)35 new_kwargs = dict(kwargs)36 new_kwargs['return_response'] = False37 return f(*args, **kwargs)3839 return wrapped4041
45 unmodified lines