Skip to content
Myr

Making sure we check for str/unicode.

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

authored by Stephen Huenneke · committed by Stephen Huenneke · parent 8d9d9fb · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:requests/models.py+2 added-2 removed
90 unmodified lines
91 2-tuples. Order is retained if data is a list of 2-tuples but abritrary92 if parameters are supplied as a dict.9394 """95 if (not files) or isinstance(data, str):96 return (None, None)95 if (not files) or isinstance(data, basestring):96 return None9798 new_fields = []99 fields = to_key_val_list(data or {})100 files = to_key_val_list(files or {})
606 unmodified lines