Patch #473265: UpdatePairedHandlers nonsensical.

This commit is contained in:
Martin v. Löwis 2001-11-10 13:59:16 +00:00
parent 1d7c55faee
commit 42ba08fab0
1 changed files with 3 additions and 3 deletions

View File

@ -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);