Fix double import causing an exception on MOBI input

This commit is contained in:
Kovid Goyal 2019-04-09 17:58:45 +05:30
parent 70600166f0
commit bacf2704e0
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -195,7 +195,6 @@ class MobiReader(object):
root = html.fromstring(self.processed_html)
if root.xpath('descendant::p/descendant::p'):
from html5_parser import parse
from calibre.ebooks.chardet import strip_encoding_declarations
self.log.warning('Malformed markup, parsing using html5-parser')
self.processed_html = strip_encoding_declarations(self.processed_html)
try: