From: Fred Drake Date: Tue, 7 Oct 1997 19:32:00 +0000 (+0000) Subject: initparser(): Use PyErr_NewException() to create the exception. X-Git-Tag: v1.5a4~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0225a38907edb7f924f7b04ce2130fde4f679e81;p=thirdparty%2FPython%2Fcpython.git initparser(): Use PyErr_NewException() to create the exception. --- diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c index d1f11548dc9a..6c885dfbe54c 100644 --- a/Modules/parsermodule.c +++ b/Modules/parsermodule.c @@ -2632,7 +2632,7 @@ initparser() module = Py_InitModule("parser", parser_functions); dict = PyModule_GetDict(module); - parser_error = PyString_FromString("parser.ParserError"); + parser_error = PyErr_NewException("parser.ParserError", NULL, NULL); if ((parser_error == 0) || (PyDict_SetItemString(dict, "ParserError", parser_error) != 0)) {