Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pre-commit/pre-commit
/ _oserror_to_output
Function
_oserror_to_output
pre_commit/util.py:86–87 ·
view source on GitHub ↗
(e: OSError)
Source
from the content-addressed store, hash-verified
84
85
86
def
_oserror_to_output(e: OSError) -> tuple[int, bytes, None]:
87
return
1, force_bytes(e).rstrip(b
'\n'
) + b
'\n'
, None
88
89
90
def
cmd_output_b(
Callers
2
cmd_output_b
Function · 0.85
cmd_output_p
Function · 0.85
Calls
1
force_bytes
Function · 0.85
Tested by
no test coverage detected