summaryrefslogtreecommitdiffstats
path: root/module/network/RequestFactory.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-14 20:59:01 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-14 20:59:01 +0200
commit853d29a0f12cdcb6c406b829a57439c7ea9b570d (patch)
tree047d94a11037617521c7a50130a6ead538c5daf7 /module/network/RequestFactory.py
parentfixed config on webif + show description (diff)
downloadpyload-853d29a0f12cdcb6c406b829a57439c7ea9b570d.tar.xz
has_key refractored, package name generator by Geek
Diffstat (limited to 'module/network/RequestFactory.py')
-rw-r--r--module/network/RequestFactory.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/network/RequestFactory.py b/module/network/RequestFactory.py
index 1a38ace43..774249a70 100644
--- a/module/network/RequestFactory.py
+++ b/module/network/RequestFactory.py
@@ -69,7 +69,7 @@ class RequestFactory():
return rep
def getCookieJar(self, pluginName, account=None):
- if self.cookiejars.has_key((pluginName, account)):
+ if (pluginName, account) in self.cookiejars:
return self.cookiejars[(pluginName, account)]
cj = CookieJar(pluginName, account)
@@ -121,4 +121,4 @@ def getURL(*args, **kwargs):
def getRequest(*args, **kwargs):
- return pyreq.getHTTPRequest() \ No newline at end of file
+ return pyreq.getHTTPRequest()