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:
46b6207
)
This simplification should work.
author
Ian Cordasco
<graffatcolmingov@gmail.com>
Wed, 1 Aug 2012 13:03:57 +0000
(09:03 -0400)
committer
Ian Cordasco
<graffatcolmingov@gmail.com>
Thu, 2 Aug 2012 21:31:30 +0000
(17:31 -0400)
Probably should write a test case where it should fail though.
requests/models.py
patch
|
blob
|
history
diff --git
a/requests/models.py
b/requests/models.py
index
8e2e335
..
379c26d
100644
(file)
--- a/
requests/models.py
+++ b/
requests/models.py
@@
-342,7
+342,7
@@
class Request(object):
try:
fields = list(self.data.items())
except AttributeError:
- fields = list(
dict(self.data).items()
)
+ fields = list(
self.data
)
if isinstance(files, dict):
files = files.items()