From: Terry Jan Reedy Date: Mon, 30 Nov 2020 17:09:43 +0000 (-0500) Subject: bpo-42508: Remove bogus idlelib.pyshell.ModifiedInterpreter attribute (GH-23570) X-Git-Tag: v3.10.0a3~53 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e41bfd15dd148627b4f39c2a5837bddd8894d345;p=thirdparty%2FPython%2Fcpython.git 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.) --- diff --git a/Lib/idlelib/pyshell.py b/Lib/idlelib/pyshell.py index 343d2ef32d7a..c3ecdc7b1b07 100755 --- a/Lib/idlelib/pyshell.py +++ b/Lib/idlelib/pyshell.py @@ -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: