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()
plugins = config.get('_content_plugins', {})
keyword_re = re.compile(r'^ *(?P<keyword>[\w\*]*) *(\((?P<argument>.*)\))? *$')
if not content:
content = [ { 'song': None} ]
content = [{'song': None}]
for elem in content:
if isinstance(elem, str):
elem = { 'song': [elem] }
elem = {'song': [elem]}
if isinstance(elem, dict):
for keyword, argument in elem.items():
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."""
from patacrep.content import ContentItem, ContentError, ContentList, EmptyContentList
from patacrep.content import ContentItem, ContentList
KEYWORDS = [
"part",

2
patacrep/content/songsection.py

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

Loading…
Cancel
Save