BitWorking

Joe Gregorio's writings (archives), projects and status updates.

etree lxml html5lib

Because, you know, I don't need to know about lxml preserving the case of my doctype every single time I run piccolo.

import warnings
from html5lib.constants import DataLossWarning
warnings.simplefilter("ignore", DataLossWarning) 

from lxml import etree
    

2010-01-10