[Python-3000-checkins] r59659 - python/branches/py3k/Lib/code.py
guido.van.rossum
python-3000-checkins at python.org
Wed Jan 2 03:55:27 CET 2008
Author: guido.van.rossum
Date: Wed Jan 2 03:55:27 2008
New Revision: 59659
Modified:
python/branches/py3k/Lib/code.py
Log:
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?
Modified: python/branches/py3k/Lib/code.py
==============================================================================
--- python/branches/py3k/Lib/code.py (original)
+++ python/branches/py3k/Lib/code.py Wed Jan 2 03:55:27 2008
@@ -253,13 +253,12 @@
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)
More information about the Python-3000-checkins
mailing list