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

Method prepare_reader

Lib/test/test_pyrepl/test_pyrepl.py:181–185  ·  view source on GitHub ↗
(self, events)

Source from the content-addressed store, hash-verified

179
180class TestCursorPosition(TestCase):
181 def prepare_reader(self, events):
182 console = FakeConsole(events)
183 config = ReadlineConfig(readline_completer=None)
184 reader = ReadlineAlikeReader(console=console, config=config)
185 return reader
186
187 def test_up_arrow_simple(self):
188 # fmt: off

Callers

nothing calls this directly

Calls 3

ReadlineConfigClass · 0.90
ReadlineAlikeReaderClass · 0.90
FakeConsoleClass · 0.85

Tested by

no test coverage detected