Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 143730
Collapse All | Expand All

(-)pym/portage_util.py (-3 / +1 lines)
Lines 80-91 Link Here
80
	"""Stacks an array of dict-types into one array. Optionally merging or
80
	"""Stacks an array of dict-types into one array. Optionally merging or
81
	overwriting matching key/value pairs for the dict[key]->list.
81
	overwriting matching key/value pairs for the dict[key]->list.
82
	Returns a single dict. Higher index in lists is preferenced."""
82
	Returns a single dict. Higher index in lists is preferenced."""
83
	final_dict = None
83
	final_dict = {}
84
	for mydict in original_dicts:
84
	for mydict in original_dicts:
85
		if mydict is None:
85
		if mydict is None:
86
			continue
86
			continue
87
		if final_dict is None:
88
			final_dict = {}
89
		for y in mydict.keys():
87
		for y in mydict.keys():
90
			if not final_dict.has_key(y):
88
			if not final_dict.has_key(y):
91
				final_dict[y] = []
89
				final_dict[y] = []

Return to bug 143730