From 38c425a0aeca547b9495481b4323f23f16c5b576 2011-07-30 02:27:30 From: Thomas Spura Date: 2011-07-30 02:27:30 Subject: [PATCH] Fix bare print calls that were missing '()'. These were causing a missing newline on exit. Closes gh-637, slightly modified from the original version, as there was one more print elsewhere in the file. --- diff --git a/IPython/utils/io.py b/IPython/utils/io.py index 2129797..4f55ed9 100644 --- a/IPython/utils/io.py +++ b/IPython/utils/io.py @@ -196,7 +196,7 @@ def raw_input_multi(header='', ps1='==> ', ps2='..> ',terminate_str = '.'): return lines[:-1] # don't return the termination command except EOFError: - print + print() return lines @@ -232,7 +232,7 @@ def ask_yes_no(prompt,default=None): except EOFError: if default in answers.keys(): ans = default - print + print() else: raise