summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorLaurent Charignon <l.charignon@gmail.com>2016-01-31 18:27:53 -0800
committerLaurent Charignon <l.charignon@gmail.com>2016-01-31 18:27:53 -0800
commit6e5da324285aa8d67dce9647cf094f79dbf7a4e6 (patch)
tree27fd0856c719741032e20497187646dc714974b1
parent8eca69b1257e8b3ea6658d38300203eda4a95d1d (diff)
downloadranger-6e5da324285aa8d67dce9647cf094f79dbf7a4e6.tar.gz
bookmarks: add __delitem__ implementation
-rw-r--r--ranger/container/bookmarks.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ranger/container/bookmarks.py b/ranger/container/bookmarks.py
index 388df334..9d00e9c8 100644
--- a/ranger/container/bookmarks.py
+++ b/ranger/container/bookmarks.py
@@ -71,6 +71,9 @@ class Bookmarks(object):
         self["'"] = value
         if self.autosave: self.save()
 
+    def __delitem__(self, key):
+        self.delete(key)
+
     def __iter__(self):
         return iter(self.dct.items())