MCPcopy Index your code
hub / github.com/RustPython/RustPython / check

Function check

Lib/_pyrepl/simple_interact.py:49–57  ·  view source on GitHub ↗

Returns the error message if there is a problem initializing the state.

()

Source from the content-addressed store, hash-verified

47 from .windows_console import _error
48
49def check() -> str:
50 """Returns the error message if there is a problem initializing the state."""
51 try:
52 _get_reader()
53 except _error as e:
54 if term := os.environ.get("TERM", ""):
55 term = f"; TERM={term}"
56 return str(str(e) or repr(e) or "unknown error") + term
57 return ""
58
59
60def _strip_final_indent(text: str) -> str:

Callers 1

main.pyFile · 0.70

Calls 3

strFunction · 0.85
reprFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected