[XML-SIG] Bug in xml/dom/core.py
Johann Visagie
johann@egenetics.com
Thu, 14 Sep 2000 18:01:06 +0200
Surely the following is a case of reversed parameters to isinstance()? I
found the problem in 0.5.4, 0.5.5 and 0.5.5.1.
(Apologies if this is not the correct place to post this sort of report.)
Regards,
-- Johann
--- xml/dom/core.py.orig Tue Jun 6 01:46:32 2000
+++ xml/dom/core.py Thu Sep 14 17:55:54 2000
@@ -154,7 +154,7 @@
# Check doctype value, if provided.
if doctype is not None:
- if not isinstance( DocumentType, doctype ):
+ if not isinstance( doctype, DocumentType ):
raise ValueError, ('doctype argument must be a DocumentType node: '
+ repr(doctype) )