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

Function converted_error

Tools/c-analyzer/c_parser/preprocessor/common.py:108–118  ·  view source on GitHub ↗
(tool, argv, filename)

Source from the content-addressed store, hash-verified

106
107@contextlib.contextmanager
108def converted_error(tool, argv, filename):
109 try:
110 yield
111 except subprocess.CalledProcessError as exc:
112 convert_error(
113 tool,
114 argv,
115 filename,
116 exc.stderr,
117 exc.returncode,
118 )
119
120
121def convert_error(tool, argv, filename, stderr, rc):

Callers 1

preprocessFunction · 0.85

Calls 1

convert_errorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…