mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
simplify
This commit is contained in:
@@ -46,4 +46,5 @@ Patches and Suggestions
|
||||
- Josselin Jacquard
|
||||
- Travis N. Vaught
|
||||
- Fredrik Möllerstrand
|
||||
- Daniel Hengeveld
|
||||
- Daniel Hengeveld
|
||||
- Dan Head
|
||||
+3
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user