MCPcopy Index your code
hub / github.com/RustPython/RustPython / _compile_source

Function _compile_source

Lib/zipimport.py:737–739  ·  view source on GitHub ↗
(pathname, source)

Source from the content-addressed store, hash-verified

735# Given a string buffer containing Python source code, compile it
736# and return a code object.
737def _compile_source(pathname, source):
738 source = _normalize_line_endings(source)
739 return compile(source, pathname, 'exec', dont_inherit=True)
740
741# Convert the date/time values found in the Zip archive to a value
742# 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