Browse Source

(pylint) correct unused imports and vars

pull/190/head
Oliverpool 9 years ago
parent
commit
f405d2b44c
  1. 5
      patacrep/content/__init__.py
  2. 2
      patacrep/content/section.py
  3. 2
      patacrep/content/songsection.py

5
patacrep/content/__init__.py

@ -241,12 +241,11 @@ def process_content(content, config=None):
""" """
contentlist = ContentList() contentlist = ContentList()
plugins = config.get('_content_plugins', {}) plugins = config.get('_content_plugins', {})
keyword_re = re.compile(r'^ *(?P<keyword>[\w\*]*) *(\((?P<argument>.*)\))? *$')
if not content: if not content:
content = [ { 'song': None} ] content = [{'song': None}]
for elem in content: for elem in content:
if isinstance(elem, str): if isinstance(elem, str):
elem = { 'song': [elem] } elem = {'song': [elem]}
if isinstance(elem, dict): if isinstance(elem, dict):
for keyword, argument in elem.items(): for keyword, argument in elem.items():
if keyword not in plugins: if keyword not in plugins:

2
patacrep/content/section.py

@ -1,6 +1,6 @@
"""Allow LaTeX sections (starred or not) as content of a songbook.""" """Allow LaTeX sections (starred or not) as content of a songbook."""
from patacrep.content import ContentItem, ContentError, ContentList, EmptyContentList from patacrep.content import ContentItem, ContentList
KEYWORDS = [ KEYWORDS = [
"part", "part",

2
patacrep/content/songsection.py

@ -1,6 +1,6 @@
"""Allow 'songchapter' and 'songsection' as content of a songbook.""" """Allow 'songchapter' and 'songsection' as content of a songbook."""
from patacrep.content import ContentItem, ContentError, ContentList, EmptyContentList from patacrep.content import ContentItem, ContentList
KEYWORDS = [ KEYWORDS = [
"songchapter", "songchapter",

Loading…
Cancel
Save