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)
| 875 | |
| 876 | # A method used during testing of _load_unlocked(). |
| 877 | def _load(spec): |
| 878 | """Return a new module object, loaded by the spec's loader. |
| 879 | |
| 880 | The module is not added to its parent. |
| 881 | |
| 882 | If a module is already in sys.modules, that existing module gets |
| 883 | clobbered. |
| 884 | |
| 885 | """ |
| 886 | with _ModuleLockManager(spec.name): |
| 887 | return _load_unlocked(spec) |
| 888 | |
| 889 | |
| 890 | # Loaders ##################################################################### |
no test coverage detected
searching dependent graphs…