diff options
author | Ned Deily <nad@acm.org> | 2011-10-31 02:58:04 (GMT) |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2011-10-31 02:58:04 (GMT) |
commit | 86d669bdb849ab5cf99623494c706a5ab416e84e (patch) | |
tree | 37452c060ac7e4996a5f1fedba5e19eb86607a05 /Lib/idlelib/PyShell.py | |
parent | f45501d8f8fe516d8dee4cc72f80bbaf1d5fd80a (diff) | |
download | cpython-86d669bdb849ab5cf99623494c706a5ab416e84e.zip cpython-86d669bdb849ab5cf99623494c706a5ab416e84e.tar.gz cpython-86d669bdb849ab5cf99623494c706a5ab416e84e.tar.bz2 |
Issue 13296: Fix IDLE to clear compile __future__ flags on shell restart.
(Patch by Roger Serwy)
Diffstat (limited to 'Lib/idlelib/PyShell.py')
-rw-r--r-- | Lib/idlelib/PyShell.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index 9dd43cf..ce83f19 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -344,6 +344,7 @@ class ModifiedInterpreter(InteractiveInterpreter): 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 @@ class ModifiedInterpreter(InteractiveInterpreter): 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 |