devtools/htmlparser.py
branchstable
changeset 3325 44caeccd2db9
parent 3151 5d45c0945bd3
child 3369 7b88d12b4ee2
child 4212 ab6573088b4a
equal deleted inserted replaced
3324:b76ed6c6a649 3325:44caeccd2db9
     5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
     5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
     6 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
     6 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
     7 """
     7 """
     8 
     8 
     9 import re
     9 import re
       
    10 import sys
    10 
    11 
    11 from lxml import etree
    12 from lxml import etree
    12 
    13 
    13 from cubicweb.view import STRICT_DOCTYPE, TRANSITIONAL_DOCTYPE
    14 from cubicweb.view import STRICT_DOCTYPE, TRANSITIONAL_DOCTYPE
    14 STRICT_DOCTYPE = str(STRICT_DOCTYPE)
    15 STRICT_DOCTYPE = str(STRICT_DOCTYPE)