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

Function _compile_source

Lib/zipimport.py:745–747  ·  view source on GitHub ↗
(pathname, source, module)

Source from the content-addressed store, hash-verified

743# Given a string buffer containing Python source code, compile it
744# and return a code object.
745def _compile_source(pathname, source, module):
746 source = _normalize_line_endings(source)
747 return compile(source, pathname, 'exec', dont_inherit=True, module=module)
748
749# Convert the date/time values found in the Zip archive to a value
750# that's compatible with the time stamp stored in .pyc files.

Callers 1

_get_module_codeFunction · 0.85

Calls 2

_normalize_line_endingsFunction · 0.85
compileFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…