summaryrefslogtreecommitdiffstats
path: root/Lib/site.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/site.py')
-rw-r--r--Lib/site.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/site.py b/Lib/site.py
index 6818e85..5e7ff7b 100644
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -299,7 +299,9 @@ class _Printer(object):
lineno += self.MAXLINES
key = None
while key is None:
- key = raw_input(prompt)
+ sys.stdout.write(prompt)
+ sys.stdout.flush()
+ key = sys.stdin.readline()
if key not in ('', 'q'):
key = None
if key == 'q':