mirror of
https://github.com/python/cpython.git
synced 2024-11-24 02:15:30 +08:00
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().
This commit is contained in:
parent
7d85ba1bae
commit
704b34d9e4
@ -310,9 +310,7 @@ class _Printer(object):
|
||||
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':
|
||||
|
Loading…
Reference in New Issue
Block a user