Skip to content

Commit a3e28e3

Browse files
committed
Patch bug in new dict_from_items_with_values
*args are passed in as a tuple, which needs to be converted to a list so that the `items` dictionary can be appended before processing.
1 parent 6b26d1b commit a3e28e3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ciscosparkapi/utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,10 @@ def dict_from_items_with_values(*dictionaries, **items):
151151
dict: A dictionary containing all of the items with a 'non-None' value.
152152
153153
"""
154-
dictionaries.append(items)
154+
dict_list = list(dictionaries)
155+
dict_list.append(items)
155156
result = {}
156-
for d in dictionaries:
157+
for d in dict_list:
157158
for key, value in d.items():
158159
if value is not None:
159160
result[key] = value

0 commit comments

Comments
 (0)