mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue 13296: Fix IDLE to clear compile __future__ flags on shell restart.
(Patch by Roger Serwy)
This commit is contained in:
parent
567493fe26
commit
7aff451728
2 changed files with 5 additions and 0 deletions
|
@ -340,6 +340,7 @@ class ModifiedInterpreter(InteractiveInterpreter):
|
|||
self.restarting = False
|
||||
self.subprocess_arglist = None
|
||||
self.port = PORT
|
||||
self.original_compiler_flags = self.compile.compiler.flags
|
||||
|
||||
rpcclt = None
|
||||
rpcsubproc = None
|
||||
|
@ -447,6 +448,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
|
||||
|
||||
|
|
|
@ -66,6 +66,9 @@ Core and Builtins
|
|||
Library
|
||||
-------
|
||||
|
||||
- Issue 13296: Fix IDLE to clear compile __future__ flags on shell restart.
|
||||
(Patch by Roger Serwy)
|
||||
|
||||
- Issue #13293: Better error message when trying to marshal bytes using
|
||||
xmlrpc.client.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue