Method to return the code object for fullname. Should return None if not applicable (e.g. built-in module). Raise ImportError if the module cannot be found.
(self, fullname)
| 170 | raise ImportError |
| 171 | |
| 172 | def get_code(self, fullname): |
| 173 | """Method to return the code object for fullname. |
| 174 | |
| 175 | Should return None if not applicable (e.g. built-in module). |
| 176 | Raise ImportError if the module cannot be found. |
| 177 | """ |
| 178 | source = self.get_source(fullname) |
| 179 | if source is None: |
| 180 | return None |
| 181 | try: |
| 182 | path = self.get_filename(fullname) |
| 183 | except ImportError: |
| 184 | path = '<string>' |
| 185 | return self.source_to_code(source, path, fullname) |
| 186 | |
| 187 | _register( |
| 188 | ExecutionLoader, |
nothing calls this directly
no test coverage detected