Browse Source

pylint

pull/218/head
Louis 9 years ago
parent
commit
5fb090a124
  1. 4
      patacrep/songs/chordpro/__init__.py
  2. 6
      patacrep/songs/chordpro/syntax.py

4
patacrep/songs/chordpro/__init__.py

@ -129,6 +129,10 @@ class Chordpro2HtmlSong(ChordproSong):
)
return None
@staticmethod
def _render_size(size):
return "TODO"
class Chordpro2LatexSong(ChordproSong):
"""Render chordpro song to latex code"""

6
patacrep/songs/chordpro/syntax.py

@ -180,6 +180,7 @@ class ChordproParser(Parser):
"""directive : LBRACE KEYWORD directive_next RBRACE
| LBRACE SPACE KEYWORD directive_next RBRACE
"""
# pylint: disable=too-many-branches
if len(symbols) == 5:
keyword = symbols[2]
argument = symbols[3]
@ -235,7 +236,10 @@ class ChordproParser(Parser):
if len(splitted) > 2:
self.error(
line=symbols.lexer.lineno,
message="Ignoring extra arguments for image directive: " + " ".join(['"{}"'.format(arg) for arg in splitted[2:]]),
message=(
"Ignoring extra arguments for image directive: " +
" ".join(['"{}"'.format(arg) for arg in splitted[2:]])
),
)
if len(splitted) == 1:
splitted.append(None)

Loading…
Cancel
Save