get cookie like dict, such as self.cookies.get('test', 'no cookie')
authorben <ben@yyer.org>
Thu, 10 May 2012 14:17:23 +0000 (22:17 +0800)
committerben <ben@yyer.org>
Thu, 10 May 2012 14:17:23 +0000 (22:17 +0800)
requests/cookies.py

index 0e0dd67f649def8d0eb44a653148883867ac4464..1e97abdc17326eb728eb7ffe0a7a0c21f682a2a7 100644 (file)
@@ -140,7 +140,7 @@ class RequestsCookieJar(cookielib.CookieJar, collections.MutableMapping):
     Unlike a regular CookieJar, this class is pickleable.
     """
 
-    def get(self, name, domain=None, path=None, default=None):
+    def get(self, name, default=None, domain=None, path=None):
         try:
             return self._find(name, domain, path)
         except KeyError: