summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-08-24 22:27:02 (GMT)
committerFred Drake <fdrake@acm.org>2000-08-24 22:27:02 (GMT)
commit9ed49e979f342d0341d0208ea1ee12ad80835a91 (patch)
treec3116a517f19982d005363b7614a8c4684fe9f9d /Modules
parentc23b5239ae0681624511e8bf98003f4c5bb9e0ff (diff)
downloadcpython-9ed49e979f342d0341d0208ea1ee12ad80835a91.zip
cpython-9ed49e979f342d0341d0208ea1ee12ad80835a91.tar.gz
cpython-9ed49e979f342d0341d0208ea1ee12ad80835a91.tar.bz2
Fix the evil booboos. ;( Causes discussed with Jeremy offline.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/pyexpat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c
index 6572037..2b8d03e 100644
--- a/Modules/pyexpat.c
+++ b/Modules/pyexpat.c
@@ -883,7 +883,7 @@ initpyexpat(void)
PyObject *errmod_name = PyString_FromString("pyexpat.errors");
if (errmod_name != NULL) {
- errors_module = PyDict_GetItem(errmod_name);
+ errors_module = PyDict_GetItem(d, errmod_name);
if (errors_module == NULL) {
errors_module = PyModule_New("pyexpat.errors");
if (errors_module != NULL) {
@@ -891,7 +891,7 @@ initpyexpat(void)
PyDict_SetItem(sys_modules, errmod_name, errors_module);
}
}
- PyDECREF(errmod_name);
+ Py_DECREF(errmod_name);
if (errors_module == NULL)
/* Don't code dump later! */
return;