MCPcopy Index your code
hub / github.com/pyload/pyload / merge

Method merge

module/plugins/PluginManager.py:59–69  ·  view source on GitHub ↗

merge dict of dicts

(dst, src, overwrite=False)

Source from the content-addressed store, hash-verified

57 """create information for all plugins available"""
58
59 def merge(dst, src, overwrite=False):
60 """merge dict of dicts"""
61 for name in src:
62 if name in dst:
63 if overwrite is True:
64 dst[name].update(src[name])
65 else:
66 for _k in set(src[name].keys()) - set(dst[name].keys()):
67 dst[name][_k] = src[name][_k]
68 else:
69 dst[name] = src[name]
70
71 sys.path.append(abspath(""))
72

Callers 13

naFunction · 0.80
qaFunction · 0.80
JaFunction · 0.80
purr_static.jsFile · 0.80
hFunction · 0.80
fFunction · 0.80
naFunction · 0.80
qaFunction · 0.80

Calls 2

updateMethod · 0.45
keysMethod · 0.45

Tested by

no test coverage detected