summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-10-19 22:02:21 +0000
committerJack Jansen <jack.jansen@cwi.nl>2002-10-19 22:02:21 +0000
commite1f7b0a1bf2e017b07390f3d751c7fedc3495a43 (patch)
treecccca304ffad42aecad81e2e739d3dfc9b2f1f48 /Python
parent1c65ebd3bcb910a5d367fc5ba022ba570ebe4f15 (diff)
downloadcpython-e1f7b0a1bf2e017b07390f3d751c7fedc3495a43.tar.gz
Made MacOS.Error a class style exception (at last!).
Diffstat (limited to 'Python')
-rw-r--r--Python/mactoolboxglue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/mactoolboxglue.c b/Python/mactoolboxglue.c
index 68876eb08f..13e7afa6be 100644
--- a/Python/mactoolboxglue.c
+++ b/Python/mactoolboxglue.c
@@ -104,7 +104,7 @@ PyObject *
PyMac_GetOSErrException(void)
{
if (PyMac_OSErrException == NULL)
- PyMac_OSErrException = PyString_FromString("MacOS.Error");
+ PyMac_OSErrException = PyErr_NewException("MacOS.Error", NULL, NULL);
return PyMac_OSErrException;
}