From 2cf1ddaff4c869780d9e796b21ef3e506f8ad321 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Fri, 18 Jan 2019 17:05:40 -0500 Subject: bpo-35770: Fix off-by-1 error. (#11618) --- Lib/idlelib/macosx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/idlelib/macosx.py b/Lib/idlelib/macosx.py index d6a1b37..eeaab59 100644 --- a/Lib/idlelib/macosx.py +++ b/Lib/idlelib/macosx.py @@ -178,7 +178,7 @@ def overrideRootMenu(root, flist): del mainmenu.menudefs[-1][1][0:2] # Remove the 'Configure Idle' entry from the options menu, it is in the # application menu as 'Preferences' - del mainmenu.menudefs[-3][1][0:1] + del mainmenu.menudefs[-3][1][0:2] menubar = Menu(root) root.configure(menu=menubar) menudict = {} -- cgit v0.12