[Python-3000-checkins] r59583 - python/branches/py3k/Lib/site.py
guido.van.rossum
python-3000-checkins at python.org
Thu Dec 20 19:42:56 CET 2007
Author: guido.van.rossum
Date: Thu Dec 20 19:42:56 2007
New Revision: 59583
Modified:
python/branches/py3k/Lib/site.py
Log:
Fix issue #1667. The _Printer() class was using sys.stdin.readline()
instead of input() to read the user's input (since at some point in
the past raw_input() was removed), but the code used to decode the
input wasn't changed. Fixed it by going back to input(), which has
since been added back with the same semantics as the old raw_input().
Modified: python/branches/py3k/Lib/site.py
==============================================================================
--- python/branches/py3k/Lib/site.py (original)
+++ python/branches/py3k/Lib/site.py Thu Dec 20 19:42:56 2007
@@ -310,9 +310,7 @@
lineno += self.MAXLINES
key = None
while key is None:
- sys.stdout.write(prompt)
- sys.stdout.flush()
- key = sys.stdin.readline()
+ key = input(prompt)
if key not in ('', 'q'):
key = None
if key == 'q':
More information about the Python-3000-checkins
mailing list