mirror of https://github.com/python/cpython.git
Fix the evil booboos. ;( Causes discussed with Jeremy offline.
This commit is contained in:
parent
c23b5239ae
commit
9ed49e979f
|
@ -883,7 +883,7 @@ initpyexpat(void)
|
||||||
PyObject *errmod_name = PyString_FromString("pyexpat.errors");
|
PyObject *errmod_name = PyString_FromString("pyexpat.errors");
|
||||||
|
|
||||||
if (errmod_name != NULL) {
|
if (errmod_name != NULL) {
|
||||||
errors_module = PyDict_GetItem(errmod_name);
|
errors_module = PyDict_GetItem(d, errmod_name);
|
||||||
if (errors_module == NULL) {
|
if (errors_module == NULL) {
|
||||||
errors_module = PyModule_New("pyexpat.errors");
|
errors_module = PyModule_New("pyexpat.errors");
|
||||||
if (errors_module != NULL) {
|
if (errors_module != NULL) {
|
||||||
|
@ -891,7 +891,7 @@ initpyexpat(void)
|
||||||
PyDict_SetItem(sys_modules, errmod_name, errors_module);
|
PyDict_SetItem(sys_modules, errmod_name, errors_module);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
PyDECREF(errmod_name);
|
Py_DECREF(errmod_name);
|
||||||
if (errors_module == NULL)
|
if (errors_module == NULL)
|
||||||
/* Don't code dump later! */
|
/* Don't code dump later! */
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue