Show More
@@ -28,7 +28,7 b' from IPython.core import inputsplitter as isp' | |||
|
28 | 28 | # Note: at the bottom, there's a slightly more complete version of this that |
|
29 | 29 | # can be useful during development of code here. |
|
30 | 30 | |
|
31 |
def mini_interactive_loop( |
|
|
31 | def mini_interactive_loop(input_func): | |
|
32 | 32 | """Minimal example of the logic of an interactive interpreter loop. |
|
33 | 33 | |
|
34 | 34 | This serves as an example, and it is used by the test system with a fake |
@@ -43,7 +43,7 b' def mini_interactive_loop(raw_input):' | |||
|
43 | 43 | while isp.push_accepts_more(): |
|
44 | 44 | indent = ' '*isp.indent_spaces |
|
45 | 45 | prompt = '>>> ' + indent |
|
46 |
line = indent + |
|
|
46 | line = indent + input_func(prompt) | |
|
47 | 47 | isp.push(line) |
|
48 | 48 | |
|
49 | 49 | # Here we just return input so we can use it in a test suite, but a real |
General Comments 0
You need to be logged in to leave comments.
Login now