mirror of
https://github.com/python/cpython
synced 2024-09-05 08:17:45 +00:00
Oops, forgot one.
This commit is contained in:
parent
ae631f7f45
commit
88d8beec0a
|
@ -854,7 +854,7 @@ initcd()
|
|||
m = Py_InitModule("cd", CD_methods);
|
||||
d = PyModule_GetDict(m);
|
||||
|
||||
CdError = PyString_FromString("cd.error");
|
||||
CdError = PyErr_NewException("cd.error", NULL, NULL);
|
||||
PyDict_SetItemString(d, "error", CdError);
|
||||
|
||||
/* Identifiers for the different types of callbacks from the parser */
|
||||
|
|
Loading…
Reference in a new issue