Concrete implementation of InspectLoader.get_source.
(self, fullname)
| 789 | |
| 790 | |
| 791 | def get_source(self, fullname): |
| 792 | """Concrete implementation of InspectLoader.get_source.""" |
| 793 | path = self.get_filename(fullname) |
| 794 | try: |
| 795 | source_bytes = self.get_data(path) |
| 796 | except OSError as exc: |
| 797 | raise ImportError('source not available through get_data()', |
| 798 | name=fullname) from exc |
| 799 | return decode_source(source_bytes) |
| 800 | |
| 801 | def source_to_code(self, data, path, fullname=None, *, _optimize=-1): |
| 802 | """Return the code object compiled from source. |
nothing calls this directly
no test coverage detected