summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 89840231e..a11c6e5f5 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -1907,7 +1907,7 @@ class config(object):
if cpdict:
keys = cpdict.keys()
while keys:
- best_match = best_match_to_list(cpv_slot, cpdict.keys())
+ best_match = best_match_to_list(cpv_slot, keys)
if best_match:
keys.remove(best_match)
usemask.append(cpdict[best_match])