diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2022-11-06 20:10:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-06 20:10:22 (GMT) |
commit | 5eff82fdde1c7ee6dee31fcd5950728893596e9f (patch) | |
tree | 5372d0a18eebe1da6b876c9b2da950c46197a955 /Lib/idlelib | |
parent | a71b117c3d4e4828057970706d03c2dad8f67c1f (diff) | |
download | cpython-5eff82fdde1c7ee6dee31fcd5950728893596e9f.zip cpython-5eff82fdde1c7ee6dee31fcd5950728893596e9f.tar.gz cpython-5eff82fdde1c7ee6dee31fcd5950728893596e9f.tar.bz2 |
bpo-33964: IDLE macosx - removed unused local dict. (GH-7926)
Diffstat (limited to 'Lib/idlelib')
-rw-r--r-- | Lib/idlelib/macosx.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/idlelib/macosx.py b/Lib/idlelib/macosx.py index 89b6457..2ea02ec 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', [ |