From 36a072948cb0e33bacf4741f652b46ad7273b3d3 Mon Sep 17 00:00:00 2001 From: troymc Date: Mon, 18 Apr 2016 08:56:57 +0200 Subject: [PATCH] Minor formatting changes in commands/utils.py --- bigchaindb/commands/utils.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/bigchaindb/commands/utils.py b/bigchaindb/commands/utils.py index 4714de5a..31d4a46d 100644 --- a/bigchaindb/commands/utils.py +++ b/bigchaindb/commands/utils.py @@ -1,4 +1,6 @@ -"""Utility functions and basic common arguments for ``argparse.ArgumentParser``.""" +"""Utility functions and basic common arguments +for ``argparse.ArgumentParser``. +""" import argparse import multiprocessing as mp @@ -7,7 +9,8 @@ import multiprocessing as mp def start(parser, scope): """Utility function to execute a subcommand. - The function will look up in the ``scope`` if there is a function called ``run_`` + The function will look up in the ``scope`` + if there is a function called ``run_`` and will run it using ``parser.args`` as first positional argument. Args: @@ -15,7 +18,8 @@ def start(parser, scope): scope (dict): map containing (eventually) the functions to be called. Raises: - NotImplementedError: if ``scope`` doesn't contain a function called ``run_``. + NotImplementedError: if ``scope`` doesn't contain a function called + ``run_``. """ args = parser.parse_args() @@ -29,7 +33,8 @@ def start(parser, scope): # if no command has been found, raise a `NotImplementedError` if not func: - raise NotImplementedError('Command `{}` not yet implemented'.format(args.command)) + raise NotImplementedError('Command `{}` not yet implemented'. + format(args.command)) args.multiprocess = getattr(args, 'multiprocess', False)