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

Function fixline

tools/python-3.11.9-amd64/Tools/scripts/pathfix.py:214–222  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

212
213
214def fixline(line):
215 if not line.startswith(b'#!'):
216 return line
217
218 if b"python" not in line:
219 return line
220
221 flags = populate_flags(line)
222 return b'#! ' + new_interpreter + flags + b'\n'
223
224
225if __name__ == '__main__':

Callers 1

fixFunction · 0.70

Calls 2

populate_flagsFunction · 0.85
startswithMethod · 0.80

Tested by

no test coverage detected