MCPcopy Index your code
hub / github.com/bpython/bpython / create_repl

Function create_repl

bpython/test/test_curtsies_repl.py:234–243  ·  view source on GitHub ↗
(**kwargs)

Source from the content-addressed store, hash-verified

232
233
234def create_repl(**kwargs):
235 config = setup_config({"editor": "true"})
236 repl = curtsiesrepl.BaseRepl(
237 config, cast(CursorAwareWindow, None), **kwargs
238 )
239 os.environ["PAGER"] = "true"
240 os.environ.pop("PYTHONSTARTUP", None)
241 repl.width = 50
242 repl.height = 20
243 return repl
244
245
246class TestFutureImports(TestCase):

Callers 12

setUpMethod · 0.70
setUpMethod · 0.70
setUpMethod · 0.70
test_replMethod · 0.70
test_interactiveMethod · 0.70
setUpMethod · 0.70
setUpMethod · 0.70
setUpMethod · 0.70
setUpMethod · 0.70
setUpMethod · 0.70
setUpMethod · 0.70
setUpMethod · 0.70

Calls 1

setup_configFunction · 0.70

Tested by

no test coverage detected