Merge pull request #4853 from mainanick/master

Incorrect ValueError Message on ~requests.utils.from_key_val_list comments
This commit is contained in:
Nate Prewitt
2018-10-29 23:13:56 -07:00
committed by GitHub
+1 -1
View File
@@ -266,7 +266,7 @@ def from_key_val_list(value):
>>> from_key_val_list([('key', 'val')])
OrderedDict([('key', 'val')])
>>> from_key_val_list('string')
ValueError: need more than 1 value to unpack
ValueError: cannot encode objects that are not 2-tuples
>>> from_key_val_list({'key': 'val'})
OrderedDict([('key', 'val')])