mirror of
https://github.com/gryf/ebook-converter.git
synced 2026-04-21 13:41:30 +02:00
Removed polyglots unicode_type usage
This commit is contained in:
@@ -8,7 +8,6 @@ from ebook_converter.library import current_library_name
|
||||
from ebook_converter.library.catalogs import AuthorSortMismatchException, EmptyCatalogException
|
||||
from ebook_converter.ptempfile import PersistentTemporaryFile
|
||||
from ebook_converter.utils.localization import calibre_langcode_to_name, canonicalize_lang, get_lang
|
||||
from ebook_converter.polyglot.builtins import unicode_type
|
||||
|
||||
|
||||
__license__ = 'GPL v3'
|
||||
@@ -395,7 +394,7 @@ class EPUB_MOBI(CatalogPlugin):
|
||||
|
||||
if opts.verbose:
|
||||
log.info(" Begin catalog source generation (%s)" %
|
||||
unicode_type(datetime.timedelta(seconds=int(time.time() - opts.start_time))))
|
||||
str(datetime.timedelta(seconds=int(time.time() - opts.start_time))))
|
||||
|
||||
# Launch the Catalog builder
|
||||
catalog = CatalogBuilder(db, opts, self, report_progress=notification)
|
||||
@@ -404,7 +403,7 @@ class EPUB_MOBI(CatalogPlugin):
|
||||
catalog.build_sources()
|
||||
if opts.verbose:
|
||||
log.info(" Completed catalog source generation (%s)\n" %
|
||||
unicode_type(datetime.timedelta(seconds=int(time.time() - opts.start_time))))
|
||||
str(datetime.timedelta(seconds=int(time.time() - opts.start_time))))
|
||||
except (AuthorSortMismatchException, EmptyCatalogException) as e:
|
||||
log.error(" *** Terminated catalog generation: %s ***" % e)
|
||||
except:
|
||||
@@ -497,7 +496,7 @@ class EPUB_MOBI(CatalogPlugin):
|
||||
|
||||
if opts.verbose:
|
||||
log.info(" Catalog creation complete (%s)\n" %
|
||||
unicode_type(datetime.timedelta(seconds=int(time.time() - opts.start_time))))
|
||||
str(datetime.timedelta(seconds=int(time.time() - opts.start_time))))
|
||||
|
||||
# returns to gui2.actions.catalog:catalog_generated()
|
||||
return catalog.error
|
||||
|
||||
Reference in New Issue
Block a user