From 73ed950e70cdf27c6455845c2ae14de0b0ab0af3 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 24 Oct 2011 20:55:35 -0400 Subject: [PATCH] simplify --- AUTHORS | 3 ++- requests/async.py | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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 -- 2.34.1