From: Zac Medico Date: Tue, 22 Sep 2009 21:58:38 +0000 (-0000) Subject: Clean up stack_dicts() a little. X-Git-Tag: v2.2_rc42~37 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3a71ae471c39c36d411d51e8b8d826c634ee5344;p=portage.git Clean up stack_dicts() a little. svn path=/main/trunk/; revision=14387 --- 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):