summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-10-19 22:02:21 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-10-19 22:02:21 (GMT)
commit8fce2ef84c1c1a421d36c84aa6e612bb4ad9a055 (patch)
tree3a089054cb752388ce6a07fb37f4ad95e862fc58
parentd22eb5953506e1706b585cbcb3d08483062bd0b0 (diff)
downloadcpython-8fce2ef84c1c1a421d36c84aa6e612bb4ad9a055.zip
cpython-8fce2ef84c1c1a421d36c84aa6e612bb4ad9a055.tar.gz
cpython-8fce2ef84c1c1a421d36c84aa6e612bb4ad9a055.tar.bz2
Made MacOS.Error a class style exception (at last!).
-rw-r--r--Python/mactoolboxglue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/mactoolboxglue.c b/Python/mactoolboxglue.c
index 68876eb..13e7afa 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;
}