Execute the module.
(self, module)
| 739 | """Use default semantics for module creation.""" |
| 740 | |
| 741 | def exec_module(self, module): |
| 742 | """Execute the module.""" |
| 743 | code = self.get_code(module.__name__) |
| 744 | if code is None: |
| 745 | raise ImportError(f'cannot load module {module.__name__!r} when ' |
| 746 | 'get_code() returns None') |
| 747 | _bootstrap._call_with_frames_removed(exec, code, module.__dict__) |
| 748 | |
| 749 | |
| 750 | class SourceLoader(_LoaderBasics): |