simplify
authorKenneth Reitz <me@kennethreitz.com>
Tue, 25 Oct 2011 00:55:35 +0000 (20:55 -0400)
committerKenneth Reitz <me@kennethreitz.com>
Tue, 25 Oct 2011 00:55:35 +0000 (20:55 -0400)
AUTHORS
requests/async.py

diff --git a/AUTHORS b/AUTHORS
index 4fe137309d83d30d5c170f311b5cd9b61a52f6f5..8ac10b290e7a5bae8c5a2835bbab60d03c51a02f 100644 (file)
--- 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
index 0738c2b0c6ef665d94ec3b4f85e572cd8f92a7a1..92839c30a25c627aea4a78aa4cff4f29e6b89886 100644 (file)
@@ -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