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

Function get_interpreter

Lib/zipapp.py:175–178  ·  view source on GitHub ↗
(archive)

Source from the content-addressed store, hash-verified

173
174
175def get_interpreter(archive):
176 with _maybe_open(archive, 'rb') as f:
177 if f.read(2) == b'#!':
178 return f.readline().strip().decode(shebang_encoding)
179
180
181def main(args=None):

Callers 1

mainFunction · 0.85

Calls 5

_maybe_openFunction · 0.85
readMethod · 0.45
decodeMethod · 0.45
stripMethod · 0.45
readlineMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…