summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/util.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/pym/portage/util.py b/pym/portage/util.py
index de5254aed..d89f723c8 100644
--- a/pym/portage/util.py
+++ b/pym/portage/util.py
@@ -222,12 +222,11 @@ def stack_dicts(dicts, incremental=0, incrementals=[], ignore_none=0):
continue
if final_dict is None:
final_dict = {}
- for y in mydict:
- if True:
- if y in final_dict and (incremental or (y in incrementals)):
- final_dict[y] += " "+mydict[y][:]
- else:
- final_dict[y] = mydict[y][:]
+ for k, v in mydict.items():
+ if k in final_dict and (incremental or (k in incrementals)):
+ final_dict[k] += " " + v
+ else:
+ final_dict[k] = v
return final_dict
def stack_lists(lists, incremental=1):