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

Function get_interpreter

tools/python-3.11.9-amd64/Lib/zipapp.py:150–153  ·  view source on GitHub ↗
(archive)

Source from the content-addressed store, hash-verified

148
149
150def get_interpreter(archive):
151 with _maybe_open(archive, 'rb') as f:
152 if f.read(2) == b'#!':
153 return f.readline().strip().decode(shebang_encoding)
154
155
156def main(args=None):

Callers 1

mainFunction · 0.85

Calls 5

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

Tested by

no test coverage detected