diff options
-rw-r--r-- | pym/portage/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 04b73b1b8..2fecfef38 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -2470,6 +2470,12 @@ class config(object): 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 |