diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2020-11-30 17:09:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-30 17:09:43 (GMT) |
commit | e41bfd15dd148627b4f39c2a5837bddd8894d345 (patch) | |
tree | b39e8090893b8c6dee121a78213b63783fa0c08b /Lib/idlelib | |
parent | 0be9ce305ff2b9e13ddcf15af8cfe28786afb36a (diff) | |
download | cpython-e41bfd15dd148627b4f39c2a5837bddd8894d345.zip cpython-e41bfd15dd148627b4f39c2a5837bddd8894d345.tar.gz cpython-e41bfd15dd148627b4f39c2a5837bddd8894d345.tar.bz2 |
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.)
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 343d2ef..c3ecdc7 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: |