Skip to content

Commit 20cba76

Browse files
[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 44b4029) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
1 parent 584a464 commit 20cba76

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

Lib/idlelib/pyshell.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,6 @@ def restart_subprocess(self, with_cwd=False, filename=''):
512512
self.rpcclt.close()
513513
self.terminate_subprocess()
514514
console = self.tkconsole
515-
was_executing = console.executing
516515
console.executing = False
517516
self.spawn_subprocess()
518517
try:

Lib/idlelib/textview.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ def __init__(self, parent, title, contents, modal=True, wrap=WORD,
129129
self.title(title)
130130
self.viewframe = ViewFrame(self, contents, wrap=wrap)
131131
self.protocol("WM_DELETE_WINDOW", self.ok)
132-
self.button_ok = button_ok = Button(self, text='Close',
133-
command=self.ok, takefocus=False)
132+
self.button_ok = Button(self, text='Close',
133+
command=self.ok, takefocus=False)
134134
self.viewframe.pack(side='top', expand=True, fill='both')
135135

136136
self.is_modal = modal

0 commit comments

Comments
 (0)