diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2001-11-10 13:59:16 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2001-11-10 13:59:16 (GMT) |
commit | 42ba08fab0f1d38e7c9fb68b222134b6182f9bf8 (patch) | |
tree | f69623ca84d0825f40992829ff544e10fbbd5df6 /Modules | |
parent | 1d7c55faeedd020a7be52d8997e9d330389ed4c0 (diff) | |
download | cpython-42ba08fab0f1d38e7c9fb68b222134b6182f9bf8.zip cpython-42ba08fab0f1d38e7c9fb68b222134b6182f9bf8.tar.gz cpython-42ba08fab0f1d38e7c9fb68b222134b6182f9bf8.tar.bz2 |
Patch #473265: UpdatePairedHandlers nonsensical.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/pyexpat.c | 6 |
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); |