summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-11-10 13:59:16 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-11-10 13:59:16 (GMT)
commit42ba08fab0f1d38e7c9fb68b222134b6182f9bf8 (patch)
treef69623ca84d0825f40992829ff544e10fbbd5df6
parent1d7c55faeedd020a7be52d8997e9d330389ed4c0 (diff)
downloadcpython-42ba08fab0f1d38e7c9fb68b222134b6182f9bf8.zip
cpython-42ba08fab0f1d38e7c9fb68b222134b6182f9bf8.tar.gz
cpython-42ba08fab0f1d38e7c9fb68b222134b6182f9bf8.tar.bz2
Patch #473265: UpdatePairedHandlers nonsensical.
-rw-r--r--Modules/pyexpat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c
index 96cb79d..9344031 100644
--- a/Modules/pyexpat.c
+++ b/Modules/pyexpat.c
@@ -1704,11 +1704,11 @@ pyxml_UpdatePairedHandlers(xmlparseobject *self,
void *end_handler = NULL;
if (self->handlers[startHandler]
- && self->handlers[endHandler] != Py_None) {
+ && self->handlers[startHandler] != Py_None) {
start_handler = handler_info[startHandler].handler;
}
- if (self->handlers[EndElement]
- && self->handlers[EndElement] != Py_None) {
+ if (self->handlers[endHandler]
+ && self->handlers[endHandler] != Py_None) {
end_handler = handler_info[endHandler].handler;
}
setter(self->itself, start_handler, end_handler);