1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-04-17 03:33:31 +02:00

Renamed constants, to make room for real constants module

This commit is contained in:
2020-05-26 19:52:18 +02:00
parent 399456d9ad
commit 2c78d6e3a6
55 changed files with 59 additions and 58 deletions

View File

@@ -10,7 +10,7 @@ from ebook_converter.ebooks.oeb.base import urlquote
from ebook_converter.ebooks.chardet import xml_to_unicode
from ebook_converter.customize.conversion import InputFormatPlugin
from ebook_converter.ptempfile import TemporaryDirectory
from ebook_converter.constants import filesystem_encoding
from ebook_converter.constants_old import filesystem_encoding
from ebook_converter.polyglot.builtins import as_bytes
__license__ = 'GPL v3'

View File

@@ -4,7 +4,7 @@ import re
import tempfile
import urllib.parse
from ebook_converter.constants import islinux, isbsd
from ebook_converter.constants_old import islinux, isbsd
from ebook_converter.customize.conversion import (InputFormatPlugin,
OptionRecommendation)
from ebook_converter.utils.localization import get_lang

View File

@@ -139,7 +139,7 @@ class LRFOutput(OutputFormatPlugin):
def convert_images(self, pages, opts, wide):
from ebook_converter.ebooks.lrf.pylrs.pylrs import Book, BookSetting, ImageStream, ImageBlock
from uuid import uuid4
from ebook_converter.constants import __appname__, __version__
from ebook_converter.constants_old import __appname__, __version__
width, height = (784, 1012) if wide else (584, 754)

View File

@@ -144,7 +144,7 @@ class PDFOutput(OutputFormatPlugin):
from PyQt5.QtWebEngineCore import QWebEngineUrlScheme
from PyQt5.QtWebEngineWidgets import QWebEnginePage # noqa
from ebook_converter.gui2 import must_use_qt
from ebook_converter.constants import FAKE_PROTOCOL
from ebook_converter.constants_old import FAKE_PROTOCOL
scheme = QWebEngineUrlScheme(FAKE_PROTOCOL.encode('ascii'))
scheme.setSyntax(QWebEngineUrlScheme.Syntax.Host)
scheme.setFlags(QWebEngineUrlScheme.SecureScheme)

View File

@@ -1,7 +1,7 @@
import os
from ebook_converter.customize.conversion import InputFormatPlugin, OptionRecommendation
from ebook_converter.constants import numeric_version
from ebook_converter.constants_old import numeric_version
from ebook_converter import walk

View File

@@ -2,7 +2,7 @@ import os
from ebook_converter.customize.conversion import OutputFormatPlugin, OptionRecommendation
from ebook_converter.ptempfile import TemporaryDirectory
from ebook_converter.constants import __appname__, __version__
from ebook_converter.constants_old import __appname__, __version__
__license__ = 'GPL 3'