Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5eff82f

Browse files
authoredNov 6, 2022
bpo-33964: IDLE macosx - removed unused local dict. (pythonGH-7926)
1 parent a71b117 commit 5eff82f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed
 

‎Lib/idlelib/macosx.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,8 @@ def overrideRootMenu(root, flist):
174174
del mainmenu.menudefs[-3][1][0:2]
175175
menubar = Menu(root)
176176
root.configure(menu=menubar)
177-
menudict = {}
178177

179-
menudict['window'] = menu = Menu(menubar, name='window', tearoff=0)
178+
menu = Menu(menubar, name='window', tearoff=0)
180179
menubar.add_cascade(label='Window', menu=menu, underline=0)
181180

182181
def postwindowsmenu(menu=menu):
@@ -226,8 +225,7 @@ def help_dialog(event=None):
226225

227226
if isCarbonTk():
228227
# for Carbon AquaTk, replace the default Tk apple menu
229-
menudict['application'] = menu = Menu(menubar, name='apple',
230-
tearoff=0)
228+
menu = Menu(menubar, name='apple', tearoff=0)
231229
menubar.add_cascade(label='IDLE', menu=menu)
232230
mainmenu.menudefs.insert(0,
233231
('application', [

0 commit comments

Comments
 (0)
Please sign in to comment.