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

Class OSMismatchError

Tools/c-analyzer/c_parser/preprocessor/errors.py:96–110  ·  view source on GitHub ↗

The target is not compatible with the host OS.

Source from the content-addressed store, hash-verified

94
95
96class OSMismatchError(MissingDependenciesError):
97 """The target is not compatible with the host OS."""
98
99 @classmethod
100 def _msg(cls, expected, **ignored):
101 return f'OS is {OS} but expected {expected or "???"}'
102
103 def __init__(self, filename, expected=None, *args, **kwargs):
104 if isinstance(expected, str):
105 expected = expected.strip()
106
107 self.actual = OS
108 self.expected = expected if expected else None
109
110 super().__init__(filename, None, *args, **kwargs)

Callers 2

preprocessFunction · 0.85
convert_errorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…