[UI] Add __contains__ to deluge/ui/coreconfig.py
This commit is contained in:
parent
67cefb1211
commit
b9f3f549a1
|
@ -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]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue