1
0
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:
2020-07-13 21:38:06 +02:00
parent 025878dfe5
commit 4216fef20e
20 changed files with 97 additions and 336 deletions

View File

@@ -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):

View File

@@ -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':