MCPcopy 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
86def _oserror_to_output(e: OSError) -> tuple[int, bytes, None]:
87 return 1, force_bytes(e).rstrip(b'\n') + b'\n', None
88
89
90def cmd_output_b(

Callers 2

cmd_output_bFunction · 0.85
cmd_output_pFunction · 0.85

Calls 1

force_bytesFunction · 0.85

Tested by

no test coverage detected