Implement `__delitem__` on `deluge.config.Config`.

This commit is contained in:
Pedro Algarvio 2010-12-23 18:27:51 +00:00
parent fe12552590
commit 154688a3e2
1 changed files with 3 additions and 0 deletions

View File

@ -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'