1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-03-17 23:33:43 +01:00

More cleanups. Removing version function.

This commit is contained in:
2020-06-15 22:22:48 +02:00
parent e7bd0f50e6
commit 1c04e7a4c7
5 changed files with 26 additions and 58 deletions

View File

@@ -5,6 +5,7 @@ import optparse
import os
from copy import deepcopy
from ebook_converter import constants
from ebook_converter import constants_old
from ebook_converter.utils.config_base import (
Config, ConfigInterface, ConfigProxy, Option, OptionSet, OptionValues,
@@ -92,7 +93,7 @@ class OptionParser(optparse.OptionParser):
else '/some path/with spaces')
if version is None:
version = '%%prog (%s %s)' % (constants_old.__appname__,
constants_old.get_version())
constants.VERSION)
optparse.OptionParser.__init__(self, usage=usage, version=version, epilog=epilog,
formatter=CustomHelpFormatter(),
conflict_handler=conflict_handler, **kwds)