[Python-checkins] cpython (2.7): Issue 13296: Fix IDLE to clear compile __future__ flags on shell restart.
ned.deily
python-checkins at python.org
Mon Oct 31 04:06:22 CET 2011
http://hg.python.org/cpython/rev/87251608cb64
changeset: 73232:87251608cb64
branch: 2.7
parent: 73229:b7e966b7c880
user: Ned Deily <nad at acm.org>
date: Sun Oct 30 19:58:04 2011 -0700
summary:
Issue 13296: Fix IDLE to clear compile __future__ flags on shell restart.
(Patch by Roger Serwy)
files:
Lib/idlelib/PyShell.py | 2 ++
Misc/NEWS | 3 +++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -344,6 +344,7 @@
self.restarting = False
self.subprocess_arglist = None
self.port = PORT
+ self.original_compiler_flags = self.compile.compiler.flags
rpcclt = None
rpcpid = None
@@ -459,6 +460,7 @@
gui = RemoteDebugger.restart_subprocess_debugger(self.rpcclt)
# reload remote debugger breakpoints for all PyShellEditWindows
debug.load_breakpoints()
+ self.compile.compiler.flags = self.original_compiler_flags
self.restarting = False
return self.rpcclt
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -74,6 +74,9 @@
Library
-------
+- Issue 13296: Fix IDLE to clear compile __future__ flags on shell restart.
+ (Patch by Roger Serwy)
+
- Issue #7334: close source files on ElementTree.parse and iterparse.
- Issue #13232: logging: Improved logging of exceptions in the presence of
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list