summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-11-30 17:30:46 (GMT)
committerGitHub <noreply@github.com>2020-11-30 17:30:46 (GMT)
commitf4389bfbb5b9f67db1505dd0003987896eae560b (patch)
tree8eaa5a1a0405c5bf12301a6a80b71b1ff8af3bed
parenta5b0c17e0d04931e639c4aa7a908a69cd0b529b3 (diff)
downloadcpython-f4389bfbb5b9f67db1505dd0003987896eae560b.zip
cpython-f4389bfbb5b9f67db1505dd0003987896eae560b.tar.gz
cpython-f4389bfbb5b9f67db1505dd0003987896eae560b.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.) (cherry picked from commit e41bfd15dd148627b4f39c2a5837bddd8894d345) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
-rwxr-xr-xLib/idlelib/pyshell.py2
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: