From: Kenneth Reitz Date: Tue, 25 Oct 2011 00:55:35 +0000 (-0400) Subject: simplify X-Git-Tag: v0.7.4~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=73ed950e70cdf27c6455845c2ae14de0b0ab0af3;p=services%2Fpython-requests.git simplify --- diff --git a/AUTHORS b/AUTHORS index 4fe1373..8ac10b2 100644 --- a/AUTHORS +++ b/AUTHORS @@ -46,4 +46,5 @@ Patches and Suggestions - Josselin Jacquard - Travis N. Vaught - Fredrik Möllerstrand -- Daniel Hengeveld \ No newline at end of file +- Daniel Hengeveld +- Dan Head \ No newline at end of file diff --git a/requests/async.py b/requests/async.py index 0738c2b..92839c3 100644 --- a/requests/async.py +++ b/requests/async.py @@ -32,8 +32,9 @@ def patched(f): """Patches a given API function to not send.""" def wrapped(*args, **kwargs): - new_kwargs = dict(kwargs) - new_kwargs['return_response'] = False + + kwargs['return_response'] = False + return f(*args, **kwargs) return wrapped