Wrap object into supporting the mapping interface if necessary.
(m)
| 37 | |
| 38 | |
| 39 | def force_mapping(m): |
| 40 | # type: (Any) -> Mapping |
| 41 | """Wrap object into supporting the mapping interface if necessary.""" |
| 42 | if isinstance(m, (LazyObject, LazySettings)): |
| 43 | m = m._wrapped |
| 44 | return DictAttribute(m) if not isinstance(m, Mapping) else m |
| 45 | |
| 46 | |
| 47 | def lpmerge(L, R): |
no test coverage detected