MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _cnfmerge

Function _cnfmerge

tools/python-3.11.9-amd64/Lib/tkinter/__init__.py:102–117  ·  view source on GitHub ↗

Internal function.

(cnfs)

Source from the content-addressed store, hash-verified

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

Callers 12

tix_configureMethod · 0.90
__init__Method · 0.90
image_createMethod · 0.90
_optionsMethod · 0.90
__init__Method · 0.90
_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 5

_flattenFunction · 0.70
typeClass · 0.50
printFunction · 0.50
updateMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected