From 468a14f25a44ddf51c174e1977fbda2289f77ca4 2010-10-10 20:08:50 From: Thomas Kluyver Date: 2010-10-10 20:08:50 Subject: [PATCH] Rename misleading use of raw_input so it's not automatically converted to input by 2to3. --- diff --git a/IPython/core/tests/test_inputsplitter.py b/IPython/core/tests/test_inputsplitter.py index 685ca1f..3e9bf07 100644 --- a/IPython/core/tests/test_inputsplitter.py +++ b/IPython/core/tests/test_inputsplitter.py @@ -28,7 +28,7 @@ from IPython.core import inputsplitter as isp # Note: at the bottom, there's a slightly more complete version of this that # can be useful during development of code here. -def mini_interactive_loop(raw_input): +def mini_interactive_loop(input_func): """Minimal example of the logic of an interactive interpreter loop. This serves as an example, and it is used by the test system with a fake @@ -43,7 +43,7 @@ def mini_interactive_loop(raw_input): while isp.push_accepts_more(): indent = ' '*isp.indent_spaces prompt = '>>> ' + indent - line = indent + raw_input(prompt) + line = indent + input_func(prompt) isp.push(line) # Here we just return input so we can use it in a test suite, but a real