mirror of
https://github.com/gryf/ebook-converter.git
synced 2026-04-28 01:33:45 +02:00
Renamed constants, to make room for real constants module
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import copy, traceback
|
||||
|
||||
from ebook_converter import prints
|
||||
from ebook_converter.constants import DEBUG
|
||||
from ebook_converter.constants_old import DEBUG
|
||||
from ebook_converter.ebooks.metadata.book import (SC_COPYABLE_FIELDS,
|
||||
SC_FIELDS_COPY_NOT_NULL, STANDARD_METADATA_FIELDS,
|
||||
TOP_LEVEL_IDENTIFIERS, ALL_METADATA_FIELDS)
|
||||
|
||||
@@ -7,7 +7,7 @@ import json, traceback
|
||||
from datetime import datetime, time
|
||||
|
||||
from ebook_converter.ebooks.metadata.book import SERIALIZABLE_FIELDS
|
||||
from ebook_converter.constants import filesystem_encoding, preferred_encoding
|
||||
from ebook_converter.constants_old import filesystem_encoding, preferred_encoding
|
||||
from ebook_converter.library.field_metadata import FieldMetadata
|
||||
from ebook_converter import isbytestring
|
||||
from ebook_converter.polyglot.builtins import as_bytes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import os, re, collections
|
||||
|
||||
from ebook_converter.utils.config import prefs
|
||||
from ebook_converter.constants import filesystem_encoding
|
||||
from ebook_converter.constants_old import filesystem_encoding
|
||||
from ebook_converter.ebooks.metadata.opf2 import OPF
|
||||
from ebook_converter import isbytestring
|
||||
from ebook_converter.customize.ui import get_file_type_metadata, set_file_type_metadata
|
||||
|
||||
@@ -16,7 +16,8 @@ import uuid
|
||||
from lxml import etree
|
||||
|
||||
from ebook_converter.ebooks import escape_xpath_attr
|
||||
from ebook_converter.constants import __appname__, __version__, filesystem_encoding
|
||||
from ebook_converter.constants_old import __appname__, __version__, \
|
||||
filesystem_encoding
|
||||
from ebook_converter.ebooks.metadata.toc import TOC
|
||||
from ebook_converter.ebooks.metadata.utils import parse_opf, pretty_print_opf as _pretty_print
|
||||
from ebook_converter.ebooks.metadata import string_to_authors, MetaInformation, check_isbn
|
||||
|
||||
@@ -5,7 +5,7 @@ import os, subprocess, shutil, re
|
||||
from functools import partial
|
||||
|
||||
from ebook_converter import prints
|
||||
from ebook_converter.constants import iswindows
|
||||
from ebook_converter.constants_old import iswindows
|
||||
from ebook_converter.ptempfile import TemporaryDirectory
|
||||
from ebook_converter.ebooks.metadata import (
|
||||
MetaInformation, string_to_authors, check_isbn, check_doi)
|
||||
|
||||
@@ -8,7 +8,7 @@ import urllib.parse
|
||||
from lxml import etree
|
||||
from lxml.builder import ElementMaker
|
||||
|
||||
from ebook_converter.constants import __appname__, __version__
|
||||
from ebook_converter.constants_old import __appname__, __version__
|
||||
from ebook_converter.ebooks.chardet import xml_to_unicode
|
||||
from ebook_converter.utils.xml_parse import safe_xml_fromstring
|
||||
from ebook_converter.utils.cleantext import clean_xml_chars
|
||||
|
||||
Reference in New Issue
Block a user