summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2001-12-27 10:29:07 (GMT)
committerJust van Rossum <just@letterror.com>2001-12-27 10:29:07 (GMT)
commit226275f780c878f836542a1c1916688f581f34ec (patch)
tree54eabb0c9d04cafaf8a62a1d726bafe9f39b7ba8
parent7c9a53dfc00698a843c679689717ade65c6cf45f (diff)
downloadcpython-226275f780c878f836542a1c1916688f581f34ec.zip
cpython-226275f780c878f836542a1c1916688f581f34ec.tar.gz
cpython-226275f780c878f836542a1c1916688f581f34ec.tar.bz2
Modified version of patch #496882: echo SimpleStdin readline()
input to stdout.
-rw-r--r--Mac/Tools/IDE/PyConsole.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Mac/Tools/IDE/PyConsole.py b/Mac/Tools/IDE/PyConsole.py
index 2bb109d..24fa059 100644
--- a/Mac/Tools/IDE/PyConsole.py
+++ b/Mac/Tools/IDE/PyConsole.py
@@ -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):