summaryrefslogtreecommitdiffstats
path: root/Modules/parsermodule.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1997-10-07 19:32:00 (GMT)
committerFred Drake <fdrake@acm.org>1997-10-07 19:32:00 (GMT)
commit0225a38907edb7f924f7b04ce2130fde4f679e81 (patch)
treeb68fb46149e87003eb89528ad7625b42971d582a /Modules/parsermodule.c
parentb68b77f62d02b172c803bd9a63bf8a4f2630eed6 (diff)
downloadcpython-0225a38907edb7f924f7b04ce2130fde4f679e81.zip
cpython-0225a38907edb7f924f7b04ce2130fde4f679e81.tar.gz
cpython-0225a38907edb7f924f7b04ce2130fde4f679e81.tar.bz2
initparser(): Use PyErr_NewException() to create the exception.
Diffstat (limited to 'Modules/parsermodule.c')
-rw-r--r--Modules/parsermodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c
index d1f1154..6c885df 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)) {