Commit 9fec76e7 authored by Fred Drake's avatar Fred Drake

initparser(): Use PyErr_NewException() to create the exception.

parent 98a2caf9
......@@ -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)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment