Execute the module.
(self, module)
| 751 | """Use default semantics for module creation.""" |
| 752 | |
| 753 | def exec_module(self, module): |
| 754 | """Execute the module.""" |
| 755 | code = self.get_code(module.__name__) |
| 756 | if code is None: |
| 757 | raise ImportError(f'cannot load module {module.__name__!r} when ' |
| 758 | 'get_code() returns None') |
| 759 | _bootstrap._call_with_frames_removed(exec, code, module.__dict__) |
| 760 | |
| 761 | def load_module(self, fullname): |
| 762 | """This method is deprecated.""" |