diff --git a/rhodecode/__init__.py b/rhodecode/__init__.py --- a/rhodecode/__init__.py +++ b/rhodecode/__init__.py @@ -19,10 +19,8 @@ # and proprietary license terms, please see https://rhodecode.com/licenses/ import os -import platform import datetime - -from collections import OrderedDict +import collections now = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S.%f") @@ -31,7 +29,7 @@ print(f'{now} Starting RhodeCode imports VERSION = tuple(open(os.path.join( os.path.dirname(__file__), 'VERSION')).read().split('.')) -BACKENDS = OrderedDict() +BACKENDS = collections.OrderedDict() BACKENDS['hg'] = 'Mercurial repository' BACKENDS['git'] = 'Git repository' @@ -53,12 +51,9 @@ EXTENSIONS = {} __version__ = ('.'.join((str(each) for each in VERSION[:3]))) __dbversion__ = 114 # defines current db version for migrations -__platform__ = platform.system() __license__ = 'AGPLv3, and Commercial License' __author__ = 'RhodeCode GmbH' __url__ = 'https://code.rhodecode.com' -is_windows = __platform__ in ['Windows'] -is_unix = not is_windows is_test = False disable_error_handler = False