MCPcopy Index your code
hub / github.com/python/cpython / _make_error

Function _make_error

Lib/test/support/strace_helper.py:103–109  ·  view source on GitHub ↗
(reason, details)

Source from the content-addressed store, hash-verified

101 res = None
102
103 def _make_error(reason, details):
104 return StraceResult(
105 strace_returncode=-1,
106 python_returncode=-1,
107 event_bytes= f"error({reason},details={details!r}) = -1".encode('utf-8'),
108 stdout=res.out if res else b"",
109 stderr=res.err if res else b"")
110
111 # Run strace, and get out the raw text
112 try:

Callers 1

strace_pythonFunction · 0.85

Calls 2

StraceResultClass · 0.85
encodeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…