]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-35770: Fix off-by-1 error. (GH-11618)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 18 Jan 2019 22:23:51 +0000 (14:23 -0800)
committerGitHub <noreply@github.com>
Fri, 18 Jan 2019 22:23:51 +0000 (14:23 -0800)
(cherry picked from commit 2cf1ddaff4c869780d9e796b21ef3e506f8ad321)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Lib/idlelib/macosx.py

index d6a1b376a1c27be1f3672c6b115da4a0dc97a1fd..eeaab59ae80295fbd6aef7d068f3dc460fd4b523 100644 (file)
@@ -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 = {}