Skip to content
Myr

Merge pull request #4853 from mainanick/master

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Incorrect ValueError Message on ~requests.utils.from_key_val_list comments

authored by Nate Prewitt · committed by GitHub · parents eaab47f, 045b706 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:requests/utils.py+1 added-1 removed
264 unmodified lines
265266 >>> from_key_val_list([('key', 'val')])267 OrderedDict([('key', 'val')])268 >>> from_key_val_list('string')269 ValueError: need more than 1 value to unpack269 ValueError: cannot encode objects that are not 2-tuples270 >>> from_key_val_list({'key': 'val'})271 OrderedDict([('key', 'val')])272273 :rtype: OrderedDict
704 unmodified lines