diff options
author | Sebastian Luther <SebastianLuther@gmx.de> | 2010-08-24 10:19:17 +0200 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-08-24 06:13:39 -0700 |
commit | 612e5c5dc62d1a4a586de9e30b743943ca6f8b20 (patch) | |
tree | a87f4faa3cf2e9ad32ada577235ff6ad639099c3 /pym/portage | |
parent | 7df2a7c22eb0b3a65e4e597e8b37d1ae5abe91e7 (diff) | |
download | portage-612e5c5dc62d1a4a586de9e30b743943ca6f8b20.tar.gz portage-612e5c5dc62d1a4a586de9e30b743943ca6f8b20.tar.bz2 portage-612e5c5dc62d1a4a586de9e30b743943ca6f8b20.zip |
ExtendedAtomDict: Add __delitem__
Diffstat (limited to 'pym/portage')
-rw-r--r-- | pym/portage/dep/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
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 |