Commit 83210b9e authored by Guido van Rossum's avatar Guido van Rossum

Fix issue #1707. When raw_input() was removed, it was incorrectly replaced

with sys.stdin.readline().  I wonder how many other places are affected
by the same bug?
parent cfb83330
......@@ -253,13 +253,12 @@ class InteractiveConsole(InteractiveInterpreter):
The returned line does not include the trailing newline.
When the user enters the EOF key sequence, EOFError is raised.
The base implementation uses sys.stdin.readline(); a subclass
may replace this with a different implementation.
The base implementation uses the built-in function
input(); a subclass may replace this with a different
implementation.
"""
sys.stdout.write(prompt)
sys.stdout.flush()
return sys.stdin.readline()
return input(prompt)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment