Mercurial > piecrust2
changeset 195:b4724e577a8c
cosmetic: Fix some PEP8 issues.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 11 Jan 2015 23:04:55 -0800 |
parents | 5d8351cb32d8 |
children | 154b8df04829 |
files | piecrust/processing/less.py |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/piecrust/processing/less.py Sun Jan 11 23:04:23 2015 -0800 +++ b/piecrust/processing/less.py Sun Jan 11 23:04:55 2015 -0800 @@ -68,7 +68,7 @@ retcode = subprocess.call(args, shell=shell) except FileNotFoundError as ex: logger.error("Tried running LESS processor with command: %s" % - args) + args) raise Exception("Error running LESS processor. " "Did you install it?") from ex if retcode != 0: @@ -82,8 +82,7 @@ self._conf = self.app.config.get('less') or {} self._conf.setdefault('bin', 'lessc') - self._conf.setdefault('options', - ['--compress']) + self._conf.setdefault('options', ['--compress']) if not isinstance(self._conf['options'], list): raise Exception("The `less/options` configuration setting " "must be an array of arguments.")