Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b68b77f commit 0225a38Copy full SHA for 0225a38
1 file changed
Modules/parsermodule.c
@@ -2632,7 +2632,7 @@ initparser()
2632
module = Py_InitModule("parser", parser_functions);
2633
dict = PyModule_GetDict(module);
2634
2635
- parser_error = PyString_FromString("parser.ParserError");
+ parser_error = PyErr_NewException("parser.ParserError", NULL, NULL);
2636
2637
if ((parser_error == 0)
2638
|| (PyDict_SetItemString(dict, "ParserError", parser_error) != 0)) {
0 commit comments