Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
45
def
has_shebang(filename):
46
with
open(filename,
"rb"
)
as
fp:
47
return
b
"#!"
== fp.read(2)
48
49
50
def
make_executable(tarinfo):
Callers
2
get_header
Function · 0.85
create
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected