From b9f3f549a1fd44688858c8f8f069d0d6e2379313 Mon Sep 17 00:00:00 2001 From: bendikro Date: Mon, 9 May 2016 19:33:01 +0200 Subject: [PATCH] [UI] Add __contains__ to deluge/ui/coreconfig.py --- deluge/ui/coreconfig.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deluge/ui/coreconfig.py b/deluge/ui/coreconfig.py index 766466bb9..887e37e50 100644 --- a/deluge/ui/coreconfig.py +++ b/deluge/ui/coreconfig.py @@ -35,6 +35,9 @@ class CoreConfig(component.Component): def stop(self): self.config = {} + def __contains__(self, key): + return key in self.config + def __getitem__(self, key): return self.config[key]