mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Fixing error return to be consistent with tuple return at the end of the method.
This commit is contained in:
+1
-1
@@ -93,7 +93,7 @@ class RequestEncodingMixin(object):
|
||||
|
||||
"""
|
||||
if (not files) or isinstance(data, str):
|
||||
return None
|
||||
return (None, None)
|
||||
|
||||
new_fields = []
|
||||
fields = to_key_val_list(data or {})
|
||||
|
||||
Reference in New Issue
Block a user