This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xtreak
Recipients cheryl.sabella, taleinat, terry.reedy, xtreak
Date 2019-01-18.12:58:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1547816330.12.0.215621595313.issue35770@roundup.psfhosted.org>
In-reply-to
Content
Cheryl, feel free to submit a patch since I have less exposure to IDLE code. I can manually test the PR on my Mac and report back since this seems to be a Mac specific patch. It would be helpful if someone with access to other Mac OS versions can possibly test this so that it doesn't cause issues on other versions.

Applying the fix suggested by Terry on my machine and running tests

$ git diff | cat
diff --git a/Lib/idlelib/macosx.py b/Lib/idlelib/macosx.py
index 9be4ed2ec4..16a13a0f2e 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[-2][1][0]
+    del mainmenu.menudefs[-3][1][0]
     menubar = Menu(root)
     root.configure(menu=menubar)
     menudict = {}

$ ./python.exe -m unittest idlelib.idle_test
sss......s..........................ss..ss...............................s.......s.............s.sssss...........s.ss..sss.ss....sss..s..s..s...s.....s.s.s................s..s........ss.........ssss.................ssss...................sssssss..s.sss...ss...........sssss.....s.s
----------------------------------------------------------------------
Ran 241 tests in 1.246s

OK (skipped=66)
History
Date User Action Args
2019-01-18 12:58:52xtreaksetrecipients: + xtreak, terry.reedy, taleinat, cheryl.sabella
2019-01-18 12:58:50xtreaksetmessageid: <1547816330.12.0.215621595313.issue35770@roundup.psfhosted.org>
2019-01-18 12:58:50xtreaklinkissue35770 messages
2019-01-18 12:58:49xtreakcreate