cpython: cebd51686565 (original) (raw)
Mercurial > cpython
changeset 96142:cebd51686565 2.7
Issue #24222: Fix regression introduced with idlelib/PyShell.py future print import. Idle -c "code", -r file.py again compile with print statement. [#24222]
Terry Jan Reedy tjreedy@udel.edu | |
---|---|
date | Mon, 18 May 2015 15:37:37 -0400 |
parents | 34523e53a342 |
children | 6969bac411fa |
files | Lib/idlelib/PyShell.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-)[+] [-] Lib/idlelib/PyShell.py 2 |
line wrap: on
line diff
--- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -652,7 +652,7 @@ class ModifiedInterpreter(InteractiveInt if source is None: source = open(filename, "r").read() try:
code = compile(source, filename, "exec")[](#l1.7)
code = compile(source, filename, "exec", dont_inherit=True)[](#l1.8) except (OverflowError, SyntaxError):[](#l1.9) self.tkconsole.resetoutput()[](#l1.10) print('*** Error in script or command!\n'[](#l1.11)