From 589c35bcc7ee2448507cedf303e3b72ede34b6ce Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Thu, 6 Jul 2000 19:38:49 +0000 Subject: Python 2.0 is not supposed to use string exceptions in the standard library & extensions, so create exceptions in extension modules using the PyErr_NewException() API. --- Modules/almodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Modules/almodule.c') diff --git a/Modules/almodule.c b/Modules/almodule.c index 13c9ebc305..453a41618d 100644 --- a/Modules/almodule.c +++ b/Modules/almodule.c @@ -2195,7 +2195,7 @@ inital() /* Add some symbolic constants to the module */ d = PyModule_GetDict(m); - ErrorObject = PyString_FromString("al.error"); + ErrorObject = PyErr_NewException("al.error", NULL, NULL); PyDict_SetItemString(d, "error", ErrorObject); /* XXXX Add constants here */ -- cgit v1.2.1