Fix a couple of incorrect imports of html5-parser

This commit is contained in:
Kovid Goyal 2017-08-02 20:18:23 +05:30
parent 22be51f7e8
commit da9ebad88e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ application_locations = ('/Applications', '~/Applications', '~/Desktop')
def generate_public_uti_map():
from lxml import etree
import urllib
from html5parser import parse
from html5_parser import parse
raw = urllib.urlopen(
'https://developer.apple.com/library/ios/documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.html').read()
root = parse(raw)

View File

@ -693,7 +693,7 @@ class BasicNewsRecipe(Recipe):
_raw = xml_to_unicode(_raw, strip_encoding_pats=True, resolve_entities=True)[0]
_raw = clean_xml_chars(_raw)
if as_tree:
from html5parser import parse
from html5_parser import parse
return parse(_raw)
else:
from html5_parser.soup import set_soup_module, parse