From: Terry Jan Reedy Date: Sun, 6 Nov 2022 20:10:22 +0000 (-0500) Subject: bpo-33964: IDLE macosx - removed unused local dict. (GH-7926) X-Git-Tag: v3.12.0a2~103 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5eff82fdde1c7ee6dee31fcd5950728893596e9f;p=thirdparty%2FPython%2Fcpython.git bpo-33964: IDLE macosx - removed unused local dict. (GH-7926) --- diff --git a/Lib/idlelib/macosx.py b/Lib/idlelib/macosx.py index 89b645702d33..2ea02ec04d66 100644 --- a/Lib/idlelib/macosx.py +++ b/Lib/idlelib/macosx.py @@ -174,9 +174,8 @@ def overrideRootMenu(root, flist): del mainmenu.menudefs[-3][1][0:2] menubar = Menu(root) root.configure(menu=menubar) - menudict = {} - menudict['window'] = menu = Menu(menubar, name='window', tearoff=0) + menu = Menu(menubar, name='window', tearoff=0) menubar.add_cascade(label='Window', menu=menu, underline=0) def postwindowsmenu(menu=menu): @@ -226,8 +225,7 @@ def overrideRootMenu(root, flist): if isCarbonTk(): # for Carbon AquaTk, replace the default Tk apple menu - menudict['application'] = menu = Menu(menubar, name='apple', - tearoff=0) + menu = Menu(menubar, name='apple', tearoff=0) menubar.add_cascade(label='IDLE', menu=menu) mainmenu.menudefs.insert(0, ('application', [