Create a built-in module
(spec)
| 991 | |
| 992 | @staticmethod |
| 993 | def create_module(spec): |
| 994 | """Create a built-in module""" |
| 995 | if spec.name not in sys.builtin_module_names: |
| 996 | raise ImportError(f'{spec.name!r} is not a built-in module', |
| 997 | name=spec.name) |
| 998 | return _call_with_frames_removed(_imp.create_builtin, spec) |
| 999 | |
| 1000 | @staticmethod |
| 1001 | def exec_module(module): |
nothing calls this directly
no test coverage detected