Patch #473265: UpdatePairedHandlers nonsensical.
This commit is contained in:
parent
1d7c55faee
commit
42ba08fab0
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue