Return a new module object, loaded by the spec's loader. The module is not added to its parent. If a module is already in sys.modules, that existing module gets clobbered.
(spec)
| 957 | # A method used during testing of _load_unlocked() and by |
| 958 | # _load_module_shim(). |
| 959 | def _load(spec): |
| 960 | """Return a new module object, loaded by the spec's loader. |
| 961 | |
| 962 | The module is not added to its parent. |
| 963 | |
| 964 | If a module is already in sys.modules, that existing module gets |
| 965 | clobbered. |
| 966 | |
| 967 | """ |
| 968 | with _ModuleLockManager(spec.name): |
| 969 | return _load_unlocked(spec) |
| 970 | |
| 971 | |
| 972 | # Loaders ##################################################################### |
no test coverage detected