[Python-checkins] bpo-35770: Fix off-by-1 error. (#11618)
Terry Jan Reedy
webhook-mailer at python.org
Fri Jan 18 17:05:43 EST 2019
https://github.com/python/cpython/commit/2cf1ddaff4c869780d9e796b21ef3e506f8ad321
commit: 2cf1ddaff4c869780d9e796b21ef3e506f8ad321
branch: master
author: Terry Jan Reedy <tjreedy at udel.edu>
committer: GitHub <noreply at github.com>
date: 2019-01-18T17:05:40-05:00
summary:
bpo-35770: Fix off-by-1 error. (#11618)
files:
M Lib/idlelib/macosx.py
diff --git a/Lib/idlelib/macosx.py b/Lib/idlelib/macosx.py
index d6a1b376a1c2..eeaab59ae802 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 = {}
More information about the Python-checkins
mailing list