summaryrefslogtreecommitdiff
path: root/Lib/plat-mac/FrameWork.py
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-08-30 18:11:48 +0000
committerCollin Winter <collinw@gmail.com>2007-08-30 18:11:48 +0000
commit6cd2a2036db68874bdf66502f38f33c1824c9e65 (patch)
tree6cfebd3814871545d7c69ba5ba143d843127be9f /Lib/plat-mac/FrameWork.py
parentb9678e71f32d0df8a7a3adfff4be09fe748dc786 (diff)
downloadcpython-git-6cd2a2036db68874bdf66502f38f33c1824c9e65.tar.gz
Kill more lingering string exceptions in Lib/plat-mac/.
Diffstat (limited to 'Lib/plat-mac/FrameWork.py')
-rw-r--r--Lib/plat-mac/FrameWork.py4
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]