diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-11-26 17:31:40 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-11-26 17:31:40 +0000 |
commit | 58b49123efc3a698aeb80d185e918beb66e547d2 (patch) | |
tree | 769db93fd928234e67420f05f4798d8fc5a760d9 /pym | |
parent | 55a607ad548d28fe85f020debe366350885c741a (diff) | |
download | portage-58b49123efc3a698aeb80d185e918beb66e547d2.tar.gz portage-58b49123efc3a698aeb80d185e918beb66e547d2.tar.bz2 portage-58b49123efc3a698aeb80d185e918beb66e547d2.zip |
Implement config.pop(). (trunk r8688)
svn path=/main/branches/2.1.2/; revision=8689
Diffstat (limited to 'pym')
-rw-r--r-- | pym/portage.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pym/portage.py b/pym/portage.py index e62355a9a..b0325feb8 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -2420,6 +2420,12 @@ class config: return d[k] return x + def pop(self, k, x=None): + v = x + for d in reversed(self.lookuplist): + v = d.pop(k, v) + return v + def has_key(self,mykey): return mykey in self |