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

Method suspend_colorization

Lib/_pyrepl/reader.py:631–637  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

629
630 @contextmanager
631 def suspend_colorization(self) -> SimpleContextManager:
632 try:
633 old_can_colorize = self.can_colorize
634 self.can_colorize = False
635 yield
636 finally:
637 self.can_colorize = old_can_colorize
638
639 def finish(self) -> None:
640 """Called when a command signals that we're finished."""

Callers 1

maybe_run_commandFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected