From c03e8b860f75f381389cf09145e8429a52c2093b Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 2 Dec 2019 09:57:38 +0100 Subject: [PATCH] fix import order --- gitbatch/Cli.py | 4 ++-- gitbatch/Logging.py | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/gitbatch/Cli.py b/gitbatch/Cli.py index 3f17fbd..198b59b 100644 --- a/gitbatch/Cli.py +++ b/gitbatch/Cli.py @@ -5,7 +5,6 @@ import argparse import logging import os import sys - from collections import defaultdict from urllib.parse import urlparse @@ -13,7 +12,8 @@ import git from gitbatch import __version__ from gitbatch.Logging import SingleLog -from gitbatch.Utils import normalize_path, to_bool +from gitbatch.Utils import normalize_path +from gitbatch.Utils import to_bool class GitBatch: diff --git a/gitbatch/Logging.py b/gitbatch/Logging.py index a563cfb..e835ac5 100644 --- a/gitbatch/Logging.py +++ b/gitbatch/Logging.py @@ -1,16 +1,17 @@ #!/usr/bin/env python3 """Global utility methods and classes.""" -import os import logging -import gitbatch.Utils +import os import sys - -from gitbatch.Utils import Singleton, to_bool import colorama from pythonjsonlogger import jsonlogger +import gitbatch.Utils +from gitbatch.Utils import Singleton +from gitbatch.Utils import to_bool + CONSOLE_FORMAT = "{}[%(levelname)s]{} %(message)s" JSON_FORMAT = "(asctime) (levelname) (message)"