Skip to content
Myr

Merge pull request #224 from stoey/84e89429

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

Syntax error for Python 2.5

authored by Kenneth Reitz · committed by Kenneth Reitz · parents 0008b03, 84e8942 · 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
39 unmodified lines