diff --git a/src/calibre/utils/open_with/osx.py b/src/calibre/utils/open_with/osx.py index d8eb62d000..92488feb65 100644 --- a/src/calibre/utils/open_with/osx.py +++ b/src/calibre/utils/open_with/osx.py @@ -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) diff --git a/src/calibre/web/feeds/news.py b/src/calibre/web/feeds/news.py index 6276b4e3f3..10bcff67c2 100644 --- a/src/calibre/web/feeds/news.py +++ b/src/calibre/web/feeds/news.py @@ -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