[Python-checkins] bpo-35770: Fix off-by-1 error. (GH-11618)

Miss Islington (bot) webhook-mailer at python.org
Fri Jan 18 17:23:56 EST 2019

commit: 47290e7642dd41d94437dd0e2c0f6bfceb0281b5
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-01-18T14:23:51-08:00

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

(cherry picked from commit 2cf1ddaff4c869780d9e796b21ef3e506f8ad321)

Co-authored-by: Terry Jan Reedy <tjreedy at udel.edu>

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)
     menudict = {}

More information about the Python-checkins mailing list