MCPcopy
hub / github.com/HelloZeroNet/ZeroNet / mergeDicts

Function mergeDicts

src/util/helper.py:189–194  ·  view source on GitHub ↗
(dicts)

Source from the content-addressed store, hash-verified

187
188# Merge dict values
189def mergeDicts(dicts):
190 back = collections.defaultdict(set)
191 for d in dicts:
192 for key, val in d.items():
193 back[key].update(val)
194 return dict(back)
195
196
197# Request https url using gevent SSL error workaround

Callers

nothing calls this directly

Calls 2

itemsMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected