mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix a couple of incorrect imports of html5-parser
This commit is contained in:
parent
22be51f7e8
commit
da9ebad88e
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user