From ddce2d581b3dd98e170124bddfdf5d0b713903cb Mon Sep 17 00:00:00 2001 From: z-bowen Date: Tue, 24 Jul 2018 21:42:54 +0200 Subject: [PATCH] Problem: Flake8 complained that imports were not at the top of the file Solution: Had to play around with the order of imports to avoid cyclic dependencies, but its working and style compliant now --- bigchaindb/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bigchaindb/__init__.py b/bigchaindb/__init__.py index 3b4fd96a..fa3ad43d 100644 --- a/bigchaindb/__init__.py +++ b/bigchaindb/__init__.py @@ -2,6 +2,9 @@ import copy import logging from bigchaindb.log import DEFAULT_LOGGING_CONFIG as log_config +from bigchaindb.lib import BigchainDB # noqa +from bigchaindb.version import __version__ # noqa +from bigchaindb.core import App # from functools import reduce # PORT_NUMBER = reduce(lambda x, y: x * y, map(ord, 'BigchainDB')) % 2**16 @@ -83,7 +86,4 @@ config = { # We need to maintain a backup copy of the original config dict in case # the user wants to reconfigure the node. Check ``bigchaindb.config_utils`` # for more info. -_config = copy.deepcopy(config) -from bigchaindb.lib import BigchainDB # noqa -from bigchaindb.core import App -from bigchaindb.version import __version__ # noqa +_config = copy.deepcopy(config) \ No newline at end of file