8000 bpo-42508: Remove bogus idlelib.pyshell.ModifiedInterpreter attribute… · python/cpython@e41bfd1 · GitHub
[go: up one dir, main page]

Skip to content

Commit e41bfd1

Browse files
authored
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.)
1 parent 0be9ce3 commit e41bfd1

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)
0