MCPcopy Index your code
hub / github.com/python/cpython / _cnfmerge

Function _cnfmerge

Lib/tkinter/__init__.py:106–121  ·  view source on GitHub ↗

Internal function.

(cnfs)

Source from the content-addressed store, hash-verified

104
105
106def _cnfmerge(cnfs):
107 """Internal function."""
108 if isinstance(cnfs, dict):
109 return cnfs
110 elif isinstance(cnfs, (type(None), str)):
111 return cnfs
112 else:
113 cnf = {}
114 for c in _flatten(cnfs):
115 try:
116 cnf.update(c)
117 except (AttributeError, TypeError) as msg:
118 print("_cnfmerge: fallback due to:", msg)
119 for k, v in c.items():
120 cnf[k] = v
121 return cnf
122
123
124try: _cnfmerge = _tkinter._cnfmerge

Callers 9

__init__Method · 0.90
tk_busy_configureMethod · 0.85
_optionsMethod · 0.85
_configureMethod · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
configureMethod · 0.85

Calls 3

_flattenFunction · 0.70
updateMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…