diff options
Diffstat (limited to 'Lib/plat-mac/FrameWork.py')
-rw-r--r-- | Lib/plat-mac/FrameWork.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/plat-mac/FrameWork.py b/Lib/plat-mac/FrameWork.py index 8a9b3a597b..8f8be55349 100644 --- a/Lib/plat-mac/FrameWork.py +++ b/Lib/plat-mac/FrameWork.py @@ -229,7 +229,7 @@ class Application: 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 @@ class Menu: 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] |