mirror of
https://github.com/gryf/ebook-converter.git
synced 2026-03-13 13:15:53 +01:00
Removed prints and extract function from init module
This commit is contained in:
@@ -8,7 +8,7 @@ import sys
|
||||
import urllib.parse
|
||||
|
||||
from ebook_converter.ebooks.chardet import detect_xml_encoding
|
||||
from ebook_converter import unicode_path, replace_entities
|
||||
from ebook_converter import replace_entities
|
||||
|
||||
|
||||
class Link(object):
|
||||
|
||||
@@ -24,7 +24,6 @@ class HTML2ZIP(FileTypePlugin):
|
||||
|
||||
def run(self, htmlfile):
|
||||
import codecs
|
||||
from ebook_converter import prints
|
||||
from ebook_converter.ptempfile import TemporaryDirectory
|
||||
from ebook_converter.gui2.convert.gui_conversion import gui_convert
|
||||
from ebook_converter.customize.conversion import OptionRecommendation
|
||||
@@ -40,7 +39,8 @@ class HTML2ZIP(FileTypePlugin):
|
||||
try:
|
||||
codecs.lookup(enc)
|
||||
except Exception:
|
||||
prints('Ignoring invalid input encoding for HTML:', enc)
|
||||
print('Ignoring invalid input encoding for HTML: %s',
|
||||
enc)
|
||||
else:
|
||||
recs.append(['input_encoding', enc, OptionRecommendation.HIGH])
|
||||
if bf == 'bf':
|
||||
|
||||
Reference in New Issue
Block a user