]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-35770: Fix off-by-1 error. (#11618)
authorTerry Jan Reedy <tjreedy@udel.edu>
Fri, 18 Jan 2019 22:05:40 +0000 (17:05 -0500)
committerGitHub <noreply@github.com>
Fri, 18 Jan 2019 22:05:40 +0000 (17:05 -0500)
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 = {}