diff options
Diffstat (limited to 'module/network/CookieJar.py')
-rw-r--r-- | module/network/CookieJar.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/network/CookieJar.py b/module/network/CookieJar.py index c9ae6cb6c..c05812334 100644 --- a/module/network/CookieJar.py +++ b/module/network/CookieJar.py @@ -34,7 +34,7 @@ class CookieJar(): return self.cookies.values() def parseCookie(self, name): - if self.cookies.has_key(name): + if name in self.cookies: return self.cookies[name].split("\t")[6] else: return None @@ -47,4 +47,4 @@ class CookieJar(): self.cookies[name] = s def clear(self): - self.cookies = {}
\ No newline at end of file + self.cookies = {} |