From 79666c4d3c9b9cf7a2ae3c59fdb8f9ac8d596c6f Mon Sep 17 00:00:00 2001 From: Louis Date: Thu, 10 Jul 2014 15:45:15 +0200 Subject: [PATCH] pylint --- patacrep/build.py | 8 +++++--- patacrep/content/tex.py | 2 +- patacrep/index.py | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/patacrep/build.py b/patacrep/build.py index 1a8f1640..c3a414d4 100644 --- a/patacrep/build.py +++ b/patacrep/build.py @@ -149,7 +149,9 @@ class SongbookBuilder(object): if not self.interactive: self._pdflatex_options.append("-halt-on-error") for datadir in self.songbook.config["datadir"]: - self._pdflatex_options.append('--include-directory="{}"'.format(datadir)) + self._pdflatex_options.append( + '--include-directory="{}"'.format(datadir) + ) def build_steps(self, steps=None): """Perform steps on the songbook by calling relevant self.build_*() @@ -202,8 +204,8 @@ class SongbookBuilder(object): stdout=PIPE, stderr=PIPE, env=os.environ) - except Exception as e: - LOGGER.debug(e) + except Exception as error: + LOGGER.debug(error) raise errors.LatexCompilationError(self.basename) if not self.interactive: diff --git a/patacrep/content/tex.py b/patacrep/content/tex.py index 01513f35..030287b1 100755 --- a/patacrep/content/tex.py +++ b/patacrep/content/tex.py @@ -40,7 +40,7 @@ def parse(keyword, argument, contentlist, config): filelist = [] basefolders = [path.fullpath for path in config['_songdir']] +\ config['datadir'] + \ - [ os.path.join(path, "latex") for path in config['datadir']] + [os.path.join(path, "latex") for path in config['datadir']] for filename in contentlist: checked_file = None for path in basefolders: diff --git a/patacrep/index.py b/patacrep/index.py index 763d0151..470bb67e 100644 --- a/patacrep/index.py +++ b/patacrep/index.py @@ -75,7 +75,7 @@ class Index(object): try: letter = FIRST_LETTER_PATTERN.match(key).group(1) except AttributeError: - # classify as number all the non letter characters + # classify as number all the non letter characters letter = "0" if re.match(ur'\d', letter): letter = '0-9'