diff options
author | Ned Deily <nad@acm.org> | 2011-10-30 19:58:04 -0700 |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2011-10-30 19:58:04 -0700 |
commit | 86d669bdb849ab5cf99623494c706a5ab416e84e (patch) | |
tree | 37452c060ac7e4996a5f1fedba5e19eb86607a05 /Lib/idlelib/PyShell.py | |
parent | f45501d8f8fe516d8dee4cc72f80bbaf1d5fd80a (diff) | |
download | cpython-git-86d669bdb849ab5cf99623494c706a5ab416e84e.tar.gz |
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 9dd43cfa91..ce83f19015 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 |