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

Method restore

Lib/_pyrepl/windows_console.py:351–356  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

349 self._enable_bracketed_paste()
350
351 def restore(self) -> None:
352 if self.__vt_support:
353 # Recover to original mode before running REPL
354 self._disable_bracketed_paste()
355 if not SetConsoleMode(InHandle, self.__original_input_mode):
356 raise WinError(get_last_error())
357
358 def _move_relative(self, x: int, y: int) -> None:
359 """Moves relative to the current posxy"""

Callers

nothing calls this directly

Calls 3

WinErrorFunction · 0.90
get_last_errorFunction · 0.85

Tested by

no test coverage detected