Module: deluge Branch: multiuser-oldprefs Commit: 154688a3e21a77efb298c7c9cd329b44f2196e27
Author: Pedro Algarvio <[email protected]> Date: Thu Dec 23 18:27:51 2010 +0000 Implement `__delitem__` on `deluge.config.Config`. --- deluge/config.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/deluge/config.py b/deluge/config.py index 5dbb681..ac37b63 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' -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
