(name)
| 469 | |
| 470 | |
| 471 | def subimport(name): |
| 472 | # We cannot do simply: `return __import__(name)`: Indeed, if ``name`` is |
| 473 | # the name of a submodule, __import__ will return the top-level root module |
| 474 | # of this submodule. For instance, __import__('os.path') returns the `os` |
| 475 | # module. |
| 476 | __import__(name) |
| 477 | return sys.modules[name] |
| 478 | |
| 479 | |
| 480 | def dynamic_subimport(name, vars): |
nothing calls this directly
no outgoing calls
no test coverage detected