Merge pull request #1114 from brannerchinese/master

xml => lxml for bs4, in pelican-import.wp2fields()
This commit is contained in:
Justin Mayer 2014-02-08 15:38:06 -08:00
commit c60e0d03fb

View file

@ -112,7 +112,7 @@ def get_items(xml):
sys.exit(error)
with open(xml, encoding='utf-8') as infile:
xmlfile = infile.read()
soup = BeautifulSoup(xmlfile, "xml")
soup = BeautifulSoup(xmlfile, "lxml")
items = soup.rss.channel.findAll('item')
return items