Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/pre-commit/pre-commit
/ _open_archive
Function
_open_archive
pre_commit/languages/golang.py:53–54 ·
view source on GitHub ↗
(bio: IO[bytes])
Source
from the content-addressed store, hash-verified
51
_EXT =
'zip'
52
53
def
_open_archive(bio: IO[bytes]) -> ContextManager[ExtractAll]:
54
return
zipfile.ZipFile(bio)
55
else
:
# pragma: win32 no cover
56
_EXT =
'tar.gz'
57
Callers
1
_install_go
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected