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

Method prepare_reader

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

Source from the content-addressed store, hash-verified

2387 - Run code up to that point when pressed on blank line with preceding lines
2388 """
2389 def prepare_reader(self, events):
2390 console = FakeConsole(events)
2391 config = ReadlineConfig(readline_completer=None)
2392 reader = ReadlineAlikeReader(console=console, config=config)
2393 return reader
2394
2395 def test_ctrl_d_empty_line(self):
2396 """Test that pressing Ctrl+D on empty line exits the program"""

Callers 1

Calls 3

ReadlineConfigClass · 0.90
ReadlineAlikeReaderClass · 0.90
FakeConsoleClass · 0.85

Tested by

no test coverage detected