summaryrefslogtreecommitdiffstats
path: root/module/remote
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/remote
parentfixed config on webif + show description (diff)
downloadpyload-853d29a0f12cdcb6c406b829a57439c7ea9b570d.tar.xz
has_key refractored, package name generator by Geek
Diffstat (limited to 'module/remote')
-rw-r--r--module/remote/thriftbackend/Processor.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/remote/thriftbackend/Processor.py b/module/remote/thriftbackend/Processor.py
index 8ea45f109..a8fc94298 100644
--- a/module/remote/thriftbackend/Processor.py
+++ b/module/remote/thriftbackend/Processor.py
@@ -9,11 +9,11 @@ class Processor(Pyload.Processor):
def process(self, iprot, oprot):
trans = oprot.trans
- if not self.authenticated.has_key(trans):
+ if trans not in self.authenticated:
self.authenticated[trans] = False
oldclose = trans.close
def wrap():
- if self.authenticated.has_key(self):
+ if self in self.authenticated:
del self.authenticated[trans]
oldclose()
trans.close = wrap