Adding lxml as a SAX parser in feedparser.py

This commit is contained in:
Samuel Clay 2010-08-04 18:46:05 -04:00
parent 5cb7d1509a
commit 7221b4c5ee

View file

@ -55,7 +55,7 @@ ACCEPT_HEADER = "application/atom+xml,application/rdf+xml,application/rss+xml,ap
# List of preferred XML parsers, by SAX driver name. These will be tried first,
# but if they're not installed, Python will keep searching through its own list
# of pre-installed parsers until it finds one that supports everything we need.
PREFERRED_XML_PARSERS = ["drv_libxml2"]
PREFERRED_XML_PARSERS = ["drv_lxml", "drv_libxml2"]
# If you want feedparser to automatically run HTML markup through HTML Tidy, set
# this to 1. Requires mxTidy <http://www.egenix.com/files/python/mxTidy.html>