summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/util.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/pym/portage/util.py b/pym/portage/util.py
index 28d4e626c..de5254aed 100644
--- a/pym/portage/util.py
+++ b/pym/portage/util.py
@@ -218,11 +218,8 @@ def stack_dicts(dicts, incremental=0, incrementals=[], ignore_none=0):
Returns a single dict."""
final_dict = None
for mydict in dicts:
- if mydict is None:
- if ignore_none:
- continue
- else:
- return None
+ if not mydict:
+ continue
if final_dict is None:
final_dict = {}
for y in mydict: