Modified version of patch #496882: echo SimpleStdin readline()

input to stdout.
This commit is contained in:
Just van Rossum 2001-12-27 10:29:07 +00:00
parent 7c9a53dfc0
commit 226275f780
1 changed files with 3 additions and 1 deletions

View File

@ -354,7 +354,9 @@ class SimpleStdin:
rv = EasyDialogs.AskString(prompt)
if rv is None:
return ""
return rv + '\n'
rv = rv + "\n" # readline should include line terminator
sys.stdout.write(rv) # echo user's reply
return rv
def installconsole(defaultshow = 1):