pass things into the dict
authorKenneth Reitz <me@kennethreitz.com>
Sun, 15 May 2011 02:02:14 +0000 (22:02 -0400)
committerKenneth Reitz <me@kennethreitz.com>
Sun, 15 May 2011 02:02:14 +0000 (22:02 -0400)
requests/structures.py

index dcf47d62f35cadae1a721cb6c39b904bd0275156..391ddb1a7483d90956d050fac379f3ed547205e3 100644 (file)
@@ -14,9 +14,9 @@ from UserDict import DictMixin
 class CaseInsensitiveDict(DictMixin):
     """docstring for CaseInsensitiveDict"""
 
-    def __init__(self):
+    def __init__(self, *args, **kwargs):
         # super(CaseInsensitiveDict, self).__init__()
-        self.data = dict()
+        self.data = dict(*args, **kwargs)
 
     def __repr__(self):
         return self.data.__repr__()