[dataio] dtd_validation with external DTD requires a network connection
authorSimon Chabot <simon.chabot@logilab.fr>
Tue, 01 Oct 2019 09:45:12 +0200
changeset 564 46dbd714ff87
parent 563 4f3bb5215616
child 565 53defbcde5a5
[dataio] dtd_validation with external DTD requires a network connection
nazca/utils/dataio.py
--- a/nazca/utils/dataio.py	Tue Oct 01 09:16:34 2019 +0200
+++ b/nazca/utils/dataio.py	Tue Oct 01 09:45:12 2019 +0200
@@ -387,7 +387,7 @@
             html = html.encode('utf-8')
         try:
             etree.fromstring(self.XHTML_DOC_TEMPLATE % html,
-                             parser=etree.XMLParser(dtd_validation=True))
+                             parser=etree.XMLParser(no_network=False, dtd_validation=True))
         except etree.XMLSyntaxError:
             return False
         return True