diff options
Diffstat (limited to 'module/remote/thriftbackend/Processor.py')
-rw-r--r-- | module/remote/thriftbackend/Processor.py | 4 |
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 |