mirror of
https://github.com/python/cpython.git
synced 2024-11-24 10:24:35 +08: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 New Issue
Block a user