diff Python/mactoolboxglue.c @ 25868:2b158267b00e legacy-trunk

Made MacOS.Error a class style exception (at last!).
author Jack Jansen <jack.jansen@cwi.nl>
date Sat, 19 Oct 2002 22:02:21 +0000
parents 03d85d197052
children 756319a137b8
line wrap: on
line diff
--- a/Python/mactoolboxglue.c	Sat Oct 19 21:36:56 2002 +0000
+++ b/Python/mactoolboxglue.c	Sat Oct 19 22:02:21 2002 +0000
@@ -104,7 +104,7 @@
 PyMac_GetOSErrException(void)
 {
 	if (PyMac_OSErrException == NULL)
-		PyMac_OSErrException = PyString_FromString("MacOS.Error");
+		PyMac_OSErrException = PyErr_NewException("MacOS.Error", NULL, NULL);
 	return PyMac_OSErrException;
 }