1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-04-06 21:13:34 +02:00

Don't cross import symbols from __init__

This commit is contained in:
2020-09-30 19:06:42 +02:00
parent ee232b76d6
commit 97ddcd7be1
5 changed files with 12 additions and 25 deletions

View File

@@ -8,8 +8,8 @@ import urllib.parse
from lxml import etree
from lxml.builder import ElementMaker
from ebook_converter import __version__
from ebook_converter import constants as const
from ebook_converter import constants_old
from ebook_converter.ebooks.oeb import base
from ebook_converter.ebooks.oeb.polish.errors import MalformedMarkup
from ebook_converter.ebooks.oeb.polish.utils import guess_type, extract
@@ -608,7 +608,7 @@ def create_ncx(toc, to_href, btitle, lang, uid):
name='dtb:uid', content=str(uid))
etree.SubElement(head, base.tag('ncx', 'meta'),
name='dtb:depth', content=str(toc.depth))
generator = ''.join(['calibre (', __version__, ')'])
generator = ''.join(['calibre (', constants_old.__version__, ')'])
etree.SubElement(head, base.tag('ncx', 'meta'),
name='dtb:generator', content=generator)
etree.SubElement(head, base.tag('ncx', 'meta'), name='dtb:totalPageCount',