From fd08ddacd34530186f3954b435d4dd90b5b9471f Mon Sep 17 00:00:00 2001 From: Anish Athalye Date: Fri, 24 Apr 2015 18:26:20 -0400 Subject: [PATCH] Fix style Fix formatting of keyword arguments according to PEP 8. --- dotbot/cli.py | 24 ++++++++++++------------ dotbot/executor/commandrunner.py | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/dotbot/cli.py b/dotbot/cli.py index c280ca1..fffc017 100644 --- a/dotbot/cli.py +++ b/dotbot/cli.py @@ -5,18 +5,18 @@ from .messenger import Messenger from .messenger import Level def add_options(parser): - parser.add_argument('-Q', '--super-quiet', dest = 'super_quiet', action = 'store_true', - help = 'suppress almost all output') - parser.add_argument('-q', '--quiet', dest = 'quiet', action = 'store_true', - help = 'suppress most output') - parser.add_argument('-v', '--verbose', dest = 'verbose', action = 'store_true', - help = 'enable verbose output') - parser.add_argument('-d', '--base-directory', nargs = 1, - dest = 'base_directory', help = 'execute commands from within BASEDIR', - metavar = 'BASEDIR', required = True) - parser.add_argument('-c', '--config-file', nargs = 1, dest = 'config_file', - help = 'run commands given in CONFIGFILE', metavar = 'CONFIGFILE', - required = True) + parser.add_argument('-Q', '--super-quiet', dest='super_quiet', action='store_true', + help='suppress almost all output') + parser.add_argument('-q', '--quiet', dest='quiet', action='store_true', + help='suppress most output') + parser.add_argument('-v', '--verbose', dest='verbose', action='store_true', + help='enable verbose output') + parser.add_argument('-d', '--base-directory', nargs=1, + dest='base_directory', help='execute commands from within BASEDIR', + metavar='BASEDIR', required=True) + parser.add_argument('-c', '--config-file', nargs=1, dest='config_file', + help='run commands given in CONFIGFILE', metavar='CONFIGFILE', + required=True) def read_config(config_file): reader = ConfigReader(config_file) diff --git a/dotbot/executor/commandrunner.py b/dotbot/executor/commandrunner.py index fd44e49..45d40f5 100644 --- a/dotbot/executor/commandrunner.py +++ b/dotbot/executor/commandrunner.py @@ -41,8 +41,8 @@ class CommandRunner(Executor): self._log.lowinfo(cmd) else: self._log.lowinfo('%s [%s]' % (msg, cmd)) - ret = subprocess.call(cmd, shell = True, stdin = stdin, stdout = stdout, - stderr = stderr, cwd = self._base_directory) + ret = subprocess.call(cmd, shell=True, stdin=stdin, stdout=stdout, + stderr=stderr, cwd=self._base_directory) if ret != 0: success = False self._log.warning('Command [%s] failed' % cmd)