MCPcopy Index your code
hub / github.com/python/cpython / _get_pyc_source

Function _get_pyc_source

Lib/zipimport.py:783–793  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

781# contents of the matching .py file, or None if no source
782# is available.
783def _get_pyc_source(self, path):
784 # strip 'c' or 'o' from *.py[co]
785 assert path[-1:] in ('c', 'o')
786 path = path[:-1]
787
788 try:
789 toc_entry = self._get_files()[path]
790 except KeyError:
791 return None
792 else:
793 return _get_data(self.archive, toc_entry)
794
795
796# Get the code object associated with the module specified by

Callers 1

_unmarshal_codeFunction · 0.85

Calls 2

_get_dataFunction · 0.85
_get_filesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…