MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _get_pyc_source

Function _get_pyc_source

tools/python-3.11.9-amd64/Lib/zipimport.py:731–741  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

729# contents of the matching .py file, or None if no source
730# is available.
731def _get_pyc_source(self, path):
732 # strip 'c' or 'o' from *.py[co]
733 assert path[-1:] in ('c', 'o')
734 path = path[:-1]
735
736 try:
737 toc_entry = self._files[path]
738 except KeyError:
739 return None
740 else:
741 return _get_data(self.archive, toc_entry)
742
743
744# Get the code object associated with the module specified by

Callers 1

_unmarshal_codeFunction · 0.85

Calls 1

_get_dataFunction · 0.85

Tested by

no test coverage detected