[UI] Add __contains__ to deluge/ui/coreconfig.py

This commit is contained in:
bendikro 2016-05-09 19:33:01 +02:00
parent 67cefb1211
commit b9f3f549a1
1 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,9 @@ class CoreConfig(component.Component):
def stop(self): def stop(self):
self.config = {} self.config = {}
def __contains__(self, key):
return key in self.config
def __getitem__(self, key): def __getitem__(self, key):
return self.config[key] return self.config[key]