projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3faff0b
)
Remove unnecessary check for builtin_str
author
Ian Cordasco
<graffatcolmingov@gmail.com>
Wed, 28 May 2014 13:17:18 +0000
(08:17 -0500)
committer
Ian Cordasco
<graffatcolmingov@gmail.com>
Wed, 28 May 2014 13:17:18 +0000
(08:17 -0500)
requests/models.py
patch
|
blob
|
history
diff --git
a/requests/models.py
b/requests/models.py
index 0d7132a4dd1ca8a04f70cd92c32ff56df7ea50ed..9b16b9d8574f5ccd16954706d11b6ea8c9bcdd14 100644
(file)
--- a/
requests/models.py
+++ b/
requests/models.py
@@
-433,7
+433,7
@@
class PreparedRequest(RequestEncodingMixin, RequestHooksMixin):
else:
if data:
body = self._encode_params(data)
- if isinstance(data, basestring) or
isinstance(data, builtin_str) or
hasattr(data, 'read'):
+ if isinstance(data, basestring) or hasattr(data, 'read'):
content_type = None
else:
content_type = 'application/x-www-form-urlencoded'