From 154688a3e21a77efb298c7c9cd329b44f2196e27 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Thu, 23 Dec 2010 18:27:51 +0000 Subject: [PATCH] Implement `__delitem__` on `deluge.config.Config`. --- deluge/config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deluge/config.py b/deluge/config.py index 5dbb68197..ac37b6383 100644 --- a/deluge/config.py +++ b/deluge/config.py @@ -244,6 +244,9 @@ what is currently in the config and it could not convert the value """ return self.get_item(key) + def __delitem__(self, key): + del self.__config[key] + def get_item(self, key): """ Gets the value of item 'key'