mirror of
https://github.com/python/cpython.git
synced 2025-11-25 12:44:13 +00:00
Fix an obvious bug.
This commit is contained in:
parent
77f4438f1a
commit
1630520e5c
1 changed files with 2 additions and 2 deletions
|
|
@ -221,7 +221,7 @@ static PyMethodDef xx_methods[] = {
|
|||
DL_EXPORT(void)
|
||||
initxx(void)
|
||||
{
|
||||
PyObject *m, *d;
|
||||
PyObject *m;
|
||||
|
||||
/* Initialize the type of the new type object here; doing it here
|
||||
* is required for portability to Windows without requiring C++. */
|
||||
|
|
@ -237,5 +237,5 @@ initxx(void)
|
|||
return;
|
||||
}
|
||||
Py_INCREF(ErrorObject);
|
||||
PyModule_AddObject(d, "error", ErrorObject);
|
||||
PyModule_AddObject(m, "error", ErrorObject);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue