Module: deluge
Branch: multiuser
Commit: eb8bfdda0d86200f715db3c0ad159373c6dbe335

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 74406d2..d15aafd 100644
--- a/deluge/config.py
+++ b/deluge/config.py
@@ -242,6 +242,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.

Reply via email to