Skip to content

Commit f4389bf

Browse files
bpo-42508: Remove bogus idlelib.pyshell.ModifiedInterpreter attribute (GH-23570)
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 e41bfd1) Co-authored-by: Terry Jan Reedy <[email protected]>
1 parent a5b0c17 commit f4389bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/idlelib/pyshell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ def runcommand(self, code):
757757
def runcode(self, code):
758758
"Override base class method"
759759
if self.tkconsole.executing:
760-
self.interp.restart_subprocess()
760+
self.restart_subprocess()
761761
self.checklinecache()
762762
debugger = self.debugger
763763
try:

0 commit comments

Comments
 (0)