MCPcopy Create free account
hub / github.com/conda/constructor / has_shebang

Function has_shebang

constructor/shar.py:45–47  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

43
44
45def has_shebang(filename):
46 with open(filename, "rb") as fp:
47 return b"#!" == fp.read(2)
48
49
50def make_executable(tarinfo):

Callers 2

get_headerFunction · 0.85
createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected