diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2019-01-18 22:05:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-18 22:05:40 (GMT) |
commit | 2cf1ddaff4c869780d9e796b21ef3e506f8ad321 (patch) | |
tree | 312d152360cb59de73c5ac193c25c8bd29128c0f /Lib | |
parent | 74176226179ed56ad1c910bec5c4100e72ab4e84 (diff) | |
download | cpython-2cf1ddaff4c869780d9e796b21ef3e506f8ad321.zip cpython-2cf1ddaff4c869780d9e796b21ef3e506f8ad321.tar.gz cpython-2cf1ddaff4c869780d9e796b21ef3e506f8ad321.tar.bz2 |
bpo-35770: Fix off-by-1 error. (#11618)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/idlelib/macosx.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 = {} |