https://github.com/python/cpython/commit/20cba76ecb006f81e7c71a7d938ed85b7a753706
commit: 20cba76ecb006f81e7c71a7d938ed85b7a753706
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: terryjreedy <[email protected]>
date: 2026-07-04T00:31:13Z
summary:

[3.13] Backport idlelib changes in PR 142294 (GH-152986) (#152987)

[3.14] Backport idlelib changes in PR 142294 (GH-152986)

PR-142294 (3.15) deleted 'button_ok in textview and 'was_executing' in pyshell. 
 Backport to 3.14 and 3.13.
(cherry picked from commit 44b4029a3cc13a98148f4cb032739791e2b15eee)

Co-authored-by: Terry Jan Reedy <[email protected]>

files:
M Lib/idlelib/pyshell.py
M Lib/idlelib/textview.py

diff --git a/Lib/idlelib/pyshell.py b/Lib/idlelib/pyshell.py
index 17dd1289485573..8b6694736cc561 100755
--- a/Lib/idlelib/pyshell.py
+++ b/Lib/idlelib/pyshell.py
@@ -512,7 +512,6 @@ def restart_subprocess(self, with_cwd=False, filename=''):
         self.rpcclt.close()
         self.terminate_subprocess()
         console = self.tkconsole
-        was_executing = console.executing
         console.executing = False
         self.spawn_subprocess()
         try:
diff --git a/Lib/idlelib/textview.py b/Lib/idlelib/textview.py
index 23f0f4cb5027ec..0f719a06883ad7 100644
--- a/Lib/idlelib/textview.py
+++ b/Lib/idlelib/textview.py
@@ -129,8 +129,8 @@ def __init__(self, parent, title, contents, modal=True, 
wrap=WORD,
         self.title(title)
         self.viewframe = ViewFrame(self, contents, wrap=wrap)
         self.protocol("WM_DELETE_WINDOW", self.ok)
-        self.button_ok = button_ok = Button(self, text='Close',
-                                            command=self.ok, takefocus=False)
+        self.button_ok = Button(self, text='Close',
+                                command=self.ok, takefocus=False)
         self.viewframe.pack(side='top', expand=True, fill='both')
 
         self.is_modal = modal

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to