mirror of
https://github.com/python/cpython.git
synced 2025-10-05 22:51:56 +00:00
bpo-42508: Remove bogus idlelib.pyshell.ModifiedInterpreter attribute (GH-23570) (GH-23571)
restart_subprocess is a method of self, the pyshell.InteractiveInterpreter instance. The latter does not have an interp attribute redundantly referring to itself. (The PyShell instance does have an interp attribute, referring to the InteractiveInterpreter instance.)
(cherry picked from commit e41bfd15dd
)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
b2652f2d7e
commit
ff51e5ec26
1 changed files with 1 additions and 1 deletions
|
@ -757,7 +757,7 @@ class ModifiedInterpreter(InteractiveInterpreter):
|
||||||
def runcode(self, code):
|
def runcode(self, code):
|
||||||
"Override base class method"
|
"Override base class method"
|
||||||
if self.tkconsole.executing:
|
if self.tkconsole.executing:
|
||||||
self.interp.restart_subprocess()
|
self.restart_subprocess()
|
||||||
self.checklinecache()
|
self.checklinecache()
|
||||||
debugger = self.debugger
|
debugger = self.debugger
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue