summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/site.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/site.py b/Lib/site.py
index b97f945..4d64d20 100644
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -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':