Incorrect ValueError Message

This commit is contained in:
unknown
2018-10-29 22:53:02 +03:00
parent 3a831be413
commit ccbffe5a53
+1 -1
View File
@@ -264,7 +264,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')])