From 1ad284283a87e0d5888cb19507652dea48dfcf0c Mon Sep 17 00:00:00 2001 From: Louis Date: Fri, 11 Apr 2014 22:33:00 +0200 Subject: [PATCH] pylint --- songbook | 1 + songbook_core/build.py | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/songbook b/songbook index 105b3cea..9a814474 100755 --- a/songbook +++ b/songbook @@ -36,6 +36,7 @@ class ParseStepsAction(argparse.Action): ) class VerboseAction(argparse.Action): + """Set verbosity level with option --verbose.""" def __call__(self, *_args, **_kwargs): LOGGER.setLevel(logging.DEBUG) diff --git a/songbook_core/build.py b/songbook_core/build.py index afa72d20..bd50d0a3 100644 --- a/songbook_core/build.py +++ b/songbook_core/build.py @@ -230,20 +230,20 @@ class SongbookBuilder(object): """Build .pdf file from .tex file""" LOGGER.info("Building '{}.pdf'…".format(self.basename)) self._run_once(self._set_latex) - p = Popen( + process = Popen( ["pdflatex"] + self._pdflatex_options + [self.basename], stdout=PIPE, stderr=PIPE) log = '' - line = p.stdout.readline() + line = process.stdout.readline() while line: log += line - line = p.stdout.readline() + line = process.stdout.readline() LOGGER.debug(log) - p.wait() + process.wait() - if p.returncode: + if process.returncode: raise errors.LatexCompilationError(self.basename) def build_sbx(self):