Browse Source

Pylint compliant. Closes #4

pull/15/head
Louis 11 years ago
parent
commit
e0bc788333
  1. 1
      songbook_core/build.py
  2. 1
      songbook_core/index.py
  3. 5
      songbook_core/templates.py

1
songbook_core/build.py

@ -47,6 +47,7 @@ def parse_template(template):
return parameters return parameters
# pylint: disable=too-few-public-methods
class Songbook(object): class Songbook(object):
"""Represent a songbook (.sb) file. """Represent a songbook (.sb) file.

1
songbook_core/index.py

@ -11,7 +11,6 @@ from a file generated by the latex compilation of the songbook (.sxd).
from unidecode import unidecode from unidecode import unidecode
import locale import locale
import re import re
import sys
from songbook_core.authors import processauthors from songbook_core.authors import processauthors
from songbook_core.plastex import simpleparse from songbook_core.plastex import simpleparse

5
songbook_core/templates.py

@ -54,6 +54,7 @@ def render_tex(output, context, datadir=''):
env = _init_tex_env(datadir=datadir) env = _init_tex_env(datadir=datadir)
template = env.get_template(context['template']) template = env.get_template(context['template'])
content = template.render(**context) content = template.render(**context) #pylint: disable=star-args
output.write(content) output.write(content)
return None # TODO: gestion des erreurs
return None

Loading…
Cancel
Save