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:
110048f
)
Add __str__ to case insensitive dict. Logging headers for debugging purposes is often...
author
Avi Das
<adas@colgate.edu>
Sat, 22 Mar 2014 20:42:23 +0000
(15:42 -0500)
committer
Avi Das
<adas@colgate.edu>
Sat, 22 Mar 2014 20:42:23 +0000
(15:42 -0500)
requests/structures.py
patch
|
blob
|
history
diff --git
a/requests/structures.py
b/requests/structures.py
index a1759137aa0e30e91f428b6129d6712f6e06f643..2addb938b54eddb18e528db220f8f5ca7737ce54 100644
(file)
--- a/
requests/structures.py
+++ b/
requests/structures.py
@@
-108,6
+108,9
@@
class CaseInsensitiveDict(collections.MutableMapping):
def __repr__(self):
return '%s(%r)' % (self.__class__.__name__, dict(self.items()))
+ def __str__(self):
+ return '%s' % (dict(self.items())
+
class LookupDict(dict):
"""Dictionary lookup object."""