From 612e5c5dc62d1a4a586de9e30b743943ca6f8b20 Mon Sep 17 00:00:00 2001 From: Sebastian Luther Date: Tue, 24 Aug 2010 10:19:17 +0200 Subject: [PATCH] ExtendedAtomDict: Add __delitem__ --- pym/portage/dep/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pym/portage/dep/__init__.py b/pym/portage/dep/__init__.py index 8fc472819..723330571 100644 --- a/pym/portage/dep/__init__.py +++ b/pym/portage/dep/__init__.py @@ -1151,6 +1151,12 @@ class ExtendedAtomDict(portage.cache.mappings.MutableMapping): for item in self._extended.items(): yield item + def __delitem__(self, cp): + if "*" in cp: + return self._extended.__delitem__(cp) + else: + return self._normal.__delitem__(cp) + if sys.hexversion >= 0x3000000: keys = __iter__ items = iteritems -- 2.26.2