]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-42508: Remove bogus idlelib.pyshell.ModifiedInterpreter attribute (GH-23570)
authorTerry Jan Reedy <tjreedy@udel.edu>
Mon, 30 Nov 2020 17:09:43 +0000 (12:09 -0500)
committerGitHub <noreply@github.com>
Mon, 30 Nov 2020 17:09:43 +0000 (12:09 -0500)
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.)

Lib/idlelib/pyshell.py

index 343d2ef32d7a76f6287e004860d5db67c15834f2..c3ecdc7b1b077ce98a6989aa8e6f435d71bd5fbd 100755 (executable)
@@ -757,7 +757,7 @@ class ModifiedInterpreter(InteractiveInterpreter):
     def runcode(self, code):
         "Override base class method"
         if self.tkconsole.executing:
-            self.interp.restart_subprocess()
+            self.restart_subprocess()
         self.checklinecache()
         debugger = self.debugger
         try: