1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-07-21 22:39:57 +01:00

Fixing merge_lists to work for list_or_* types

This commit is contained in:
Sergei Trofimov
2015-06-01 16:18:13 +01:00
parent 29aa81a694
commit ead0be2763
2 changed files with 11 additions and 1 deletions
wlauto

@@ -330,6 +330,10 @@ def _merge_two_lists(base, other, duplicates='all', dict_type=dict): # pylint:
will never be removed.
"""
if not isiterable(base):
base = [base]
if not isiterable(other):
other = [other]
if duplicates == 'all':
merged_list = []
for v in normalize(base, dict_type) + normalize(other, dict_type):