summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 2cfbed407..d8e26cb9e 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -1612,12 +1612,7 @@ class config:
return bool(self.has_key(mykey))
def keys(self):
- mykeys=[]
- for x in self.lookuplist:
- for y in x.keys():
- if y not in mykeys:
- mykeys.append(y)
- return mykeys
+ return unique_array(flatten([x.keys() for x in self.lookuplist]))
def __setitem__(self,mykey,myvalue):
"set a value; will be thrown away at reset() time"