Internal function.
(cnfs)
| 100 | |
| 101 | |
| 102 | def _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 | |
| 120 | try: _cnfmerge = _tkinter._cnfmerge |
no test coverage detected