From: Guido van Rossum Date: Wed, 2 Jan 2008 02:55:27 +0000 (+0000) Subject: Fix issue #1707. When raw_input() was removed, it was incorrectly replaced X-Git-Tag: v3.0a3~264 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=83210b9ea032798ec36e3630b261f262526c5f97;p=thirdparty%2FPython%2Fcpython.git 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? --- diff --git a/Lib/code.py b/Lib/code.py index 58af88390a8d..8962927d71f5 100644 --- a/Lib/code.py +++ b/Lib/code.py @@ -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)