bpo-35770: Fix off-by-1 error. (GH-11618)

(cherry picked from commit 2cf1ddaff4)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
Miss Islington (bot) 2019-01-18 14:23:51 -08:00 committed by GitHub
parent a01e23559f
commit 47290e7642
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ def overrideRootMenu(root, flist):
del mainmenu.menudefs[-1][1][0:2] del mainmenu.menudefs[-1][1][0:2]
# Remove the 'Configure Idle' entry from the options menu, it is in the # Remove the 'Configure Idle' entry from the options menu, it is in the
# application menu as 'Preferences' # application menu as 'Preferences'
del mainmenu.menudefs[-3][1][0:1] del mainmenu.menudefs[-3][1][0:2]
menubar = Menu(root) menubar = Menu(root)
root.configure(menu=menubar) root.configure(menu=menubar)
menudict = {} menudict = {}