(self, path)
| 773 | # contents of the matching .py file, or None if no source |
| 774 | # is available. |
| 775 | def _get_pyc_source(self, path): |
| 776 | # strip 'c' or 'o' from *.py[co] |
| 777 | assert path[-1:] in ('c', 'o') |
| 778 | path = path[:-1] |
| 779 | |
| 780 | try: |
| 781 | toc_entry = self._get_files()[path] |
| 782 | except KeyError: |
| 783 | return None |
| 784 | else: |
| 785 | return _get_data(self.archive, toc_entry) |
| 786 | |
| 787 | |
| 788 | # Get the code object associated with the module specified by |
no test coverage detected