diff options
Diffstat (limited to 'pym/portage/__init__.py')
-rw-r--r-- | pym/portage/__init__.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index e4fe13eed..f17b8e8a6 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -2798,6 +2798,13 @@ class config(object): def iterkeys(self): return iter(self) + def iteritems(self): + for k in self: + yield (k, self[k]) + + def items(self): + return list(self.iteritems()) + def __setitem__(self,mykey,myvalue): "set a value; will be thrown away at reset() time" if not isinstance(myvalue, str): |