mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
Modified version of patch #496882: echo SimpleStdin readline()
input to stdout.
This commit is contained in:
parent
7c9a53dfc0
commit
226275f780
1 changed files with 3 additions and 1 deletions
|
|
@ -354,7 +354,9 @@ def readline(self):
|
|||
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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue