https://github.com/python/cpython/commit/44b4029a3cc13a98148f4cb032739791e2b15eee
commit: 44b4029a3cc13a98148f4cb032739791e2b15eee
branch: 3.14
author: Terry Jan Reedy <[email protected]>
committer: terryjreedy <[email protected]>
date: 2026-07-03T20:06:41-04:00
summary:
[3.14] Backport idlelib changes in PR 142294 (#152986)
PR-142294 (3.15) deleted 'button_ok in textview and 'was_executing' in pyshell.
Backport to 3.14 and 3.13.
files:
M Lib/idlelib/pyshell.py
M Lib/idlelib/textview.py
diff --git a/Lib/idlelib/pyshell.py b/Lib/idlelib/pyshell.py
index 1cf33dd528eaaf..ef3d014d936ce8 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]