Minor formatting changes suggested by @r-marques

This commit is contained in:
troymc 2016-04-18 16:08:25 +02:00
parent 0870985049
commit 4bfad0bbbc
2 changed files with 2 additions and 7 deletions

View File

@ -13,10 +13,7 @@ import json
import bigchaindb import bigchaindb
import bigchaindb.config_utils import bigchaindb.config_utils
from bigchaindb import db from bigchaindb import db
from bigchaindb.exceptions import ( from bigchaindb.exceptions import DatabaseAlreadyExists, KeypairNotFoundException
DatabaseAlreadyExists,
KeypairNotFoundException
)
from bigchaindb.commands.utils import base_parser, start from bigchaindb.commands.utils import base_parser, start
from bigchaindb.processes import Processes from bigchaindb.processes import Processes
from bigchaindb import crypto from bigchaindb import crypto
@ -43,8 +40,7 @@ def run_configure(args, skip_if_exists=False):
"""Run a script to configure the current node. """Run a script to configure the current node.
Args: Args:
skip_if_exists (bool): skip the function if a config file already skip_if_exists (bool): skip the function if a config file already exists
exists
""" """
config_path = args.config or bigchaindb.config_utils.CONFIG_DEFAULT_PATH config_path = args.config or bigchaindb.config_utils.CONFIG_DEFAULT_PATH
config_file_exists = os.path.exists(config_path) config_file_exists = os.path.exists(config_path)

View File

@ -22,7 +22,6 @@ from pkg_resources import iter_entry_points, ResolutionError
import bigchaindb import bigchaindb
from bigchaindb.consensus import AbstractConsensusRules from bigchaindb.consensus import AbstractConsensusRules
# logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
CONFIG_DEFAULT_PATH = os.environ.setdefault( CONFIG_DEFAULT_PATH = os.environ.setdefault(