From 3a71ae471c39c36d411d51e8b8d826c634ee5344 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 22 Sep 2009 21:58:38 +0000 Subject: [PATCH] Clean up stack_dicts() a little. svn path=/main/trunk/; revision=14387 --- pym/portage/util.py | 11 +++++------ 1 file 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): -- 2.26.2