diff --git a/pep-3121.txt b/pep-3121.txt index d08436b58..333b73c97 100644 --- a/pep-3121.txt +++ b/pep-3121.txt @@ -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;