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

Function parse_shebang

tools/python-3.11.9-amd64/Tools/scripts/pathfix.py:188–193  ·  view source on GitHub ↗
(shebangline)

Source from the content-addressed store, hash-verified

186
187
188def parse_shebang(shebangline):
189 shebangline = shebangline.rstrip(b'\n')
190 start = shebangline.find(b' -')
191 if start == -1:
192 return b''
193 return shebangline[start:]
194
195
196def populate_flags(shebangline):

Callers 1

populate_flagsFunction · 0.85

Calls 2

rstripMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected