Abstract method which should return the source code for the module. The fullname is a str. Returns a str. Raises ImportError if the module cannot be found.
(self, fullname)
| 131 | |
| 132 | @abc.abstractmethod |
| 133 | def get_source(self, fullname): |
| 134 | """Abstract method which should return the source code for the |
| 135 | module. The fullname is a str. Returns a str. |
| 136 | |
| 137 | Raises ImportError if the module cannot be found. |
| 138 | """ |
| 139 | raise ImportError |
| 140 | |
| 141 | @staticmethod |
| 142 | def source_to_code(data, path='<string>', fullname=None): |