[Python-checkins] bpo-42508: Remove bogus idlelib.pyshell.ModifiedInterpreter attribute (GH-23570)
miss-islington
webhook-mailer at python.org
Mon Nov 30 12:30:56 EST 2020
https://github.com/python/cpython/commit/f4389bfbb5b9f67db1505dd0003987896eae560b
commit: f4389bfbb5b9f67db1505dd0003987896eae560b
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2020年11月30日T09:30:46-08:00
summary:
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.)
(cherry picked from commit e41bfd15dd148627b4f39c2a5837bddd8894d345)
Co-authored-by: Terry Jan Reedy <tjreedy at udel.edu>
files:
M Lib/idlelib/pyshell.py
diff --git a/Lib/idlelib/pyshell.py b/Lib/idlelib/pyshell.py
index b69916dbe876c..adc302883ae66 100755
--- a/Lib/idlelib/pyshell.py
+++ b/Lib/idlelib/pyshell.py
@@ -757,7 +757,7 @@ def runcommand(self, code):
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:
More information about the Python-checkins
mailing list