Kill more lingering string exceptions in Lib/plat-mac/.
diff --git a/Lib/plat-mac/FrameWork.py b/Lib/plat-mac/FrameWork.py
index 8a9b3a5..8f8be55 100644
--- a/Lib/plat-mac/FrameWork.py
+++ b/Lib/plat-mac/FrameWork.py
@@ -229,7 +229,7 @@
def asyncevents(self, onoff):
"""asyncevents - Set asynchronous event handling on or off"""
if MacOS.runtimemodel == 'macho':
- raise 'Unsupported in MachoPython'
+ raise NotImplementedError('Unsupported in MachoPython')
old = self._doing_asyncevents
if old:
MacOS.SetEventHandler()
@@ -577,7 +577,7 @@
def delitem(self, item):
if item != len(self.items):
- raise 'Can only delete last item of a menu'
+ raise ValueError('Can only delete last item of a menu')
self.menu.DeleteMenuItem(item)
del self.items[item-1]