From 853d29a0f12cdcb6c406b829a57439c7ea9b570d Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 14 Jul 2011 20:59:01 +0200 Subject: has_key refractored, package name generator by Geek --- module/network/CookieJar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/network/CookieJar.py') 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 = {} -- cgit v1.2.3