diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-11-30 22:36:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-30 22:36:06 (GMT) |
commit | ff51e5ec26168574761e128cc607b879d4d5aa50 (patch) | |
tree | d31a0d8da45f6eacf1729047f3a959463d0945f5 /Lib/idlelib | |
parent | b2652f2d7e1f3b868e9bec6669b3f3f905257991 (diff) | |
download | cpython-ff51e5ec26168574761e128cc607b879d4d5aa50.zip cpython-ff51e5ec26168574761e128cc607b879d4d5aa50.tar.gz cpython-ff51e5ec26168574761e128cc607b879d4d5aa50.tar.bz2 |
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 e41bfd15dd148627b4f39c2a5837bddd8894d345)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Lib/idlelib')
-rwxr-xr-x | Lib/idlelib/pyshell.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/pyshell.py b/Lib/idlelib/pyshell.py index b69916d..adc3028 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: |