mirror of https://github.com/python/cpython
Issue 13296: Fix IDLE to clear compile __future__ flags on shell restart.
(Patch by Roger Serwy)
This commit is contained in:
parent
f45501d8f8
commit
86d669bdb8
|
@ -344,6 +344,7 @@ class ModifiedInterpreter(InteractiveInterpreter):
|
||||||
self.restarting = False
|
self.restarting = False
|
||||||
self.subprocess_arglist = None
|
self.subprocess_arglist = None
|
||||||
self.port = PORT
|
self.port = PORT
|
||||||
|
self.original_compiler_flags = self.compile.compiler.flags
|
||||||
|
|
||||||
rpcclt = None
|
rpcclt = None
|
||||||
rpcpid = None
|
rpcpid = None
|
||||||
|
@ -459,6 +460,7 @@ class ModifiedInterpreter(InteractiveInterpreter):
|
||||||
gui = RemoteDebugger.restart_subprocess_debugger(self.rpcclt)
|
gui = RemoteDebugger.restart_subprocess_debugger(self.rpcclt)
|
||||||
# reload remote debugger breakpoints for all PyShellEditWindows
|
# reload remote debugger breakpoints for all PyShellEditWindows
|
||||||
debug.load_breakpoints()
|
debug.load_breakpoints()
|
||||||
|
self.compile.compiler.flags = self.original_compiler_flags
|
||||||
self.restarting = False
|
self.restarting = False
|
||||||
return self.rpcclt
|
return self.rpcclt
|
||||||
|
|
||||||
|
|
|
@ -74,6 +74,9 @@ Core and Builtins
|
||||||
Library
|
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 #7334: close source files on ElementTree.parse and iterparse.
|
||||||
|
|
||||||
- Issue #13232: logging: Improved logging of exceptions in the presence of
|
- Issue #13232: logging: Improved logging of exceptions in the presence of
|
||||||
|
|
Loading…
Reference in New Issue