Fix missing quotation mark.
This commit is contained in:
parent
63529fc836
commit
f48192e45b
|
@ -169,7 +169,7 @@ function, and add the following code instead::
|
|||
{
|
||||
PyObject *res = PyModule_New("xx", &xxmodule);
|
||||
if (!res) return NULL;
|
||||
xxstate(res)->ErrorObject = PyErr_NewException("xx.error, NULL, NULL);
|
||||
xxstate(res)->ErrorObject = PyErr_NewException("xx.error", NULL, NULL);
|
||||
if (!xxstate(res)->ErrorObject) {
|
||||
Py_DECREF(res);
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue