Browse Source

Remove `object` superclass (necessary in python2, useless in python3)

pull/176/head
Louis 9 years ago
parent
commit
efc87a7c8c
  1. 5
      patacrep/build.py
  2. 2
      patacrep/content/__init__.py
  3. 2
      patacrep/index.py
  4. 2
      patacrep/songs/__init__.py

5
patacrep/build.py

@ -39,7 +39,7 @@ DEFAULT_CONFIG = {
# pylint: disable=too-few-public-methods
class Songbook(object):
class Songbook:
"""Represent a songbook (.sb) file.
- Low level: provide a Python representation of the values stored in the
@ -48,7 +48,6 @@ class Songbook(object):
"""
def __init__(self, raw_songbook, basename):
super(Songbook, self).__init__()
self.config = raw_songbook
self.basename = basename
# Some special keys have their value processed.
@ -129,7 +128,7 @@ def _log_pipe(pipe):
break
LOGGER.debug(line.strip())
class SongbookBuilder(object):
class SongbookBuilder:
"""Provide methods to compile a songbook."""
# if False, do not expect anything from stdin.

2
patacrep/content/__init__.py

@ -79,7 +79,7 @@ LOGGER = logging.getLogger(__name__)
EOL = '\n'
#pylint: disable=no-self-use
class Content(object):
class Content:
"""Content item. Will render to something in the .tex file.
The current jinja2.runtime.Context is passed to all function defined

2
patacrep/index.py

@ -46,7 +46,7 @@ def process_sxd(filename):
return idx
class Index(object):
class Index:
"""Title, author or scripture Index representation."""
def __init__(self, indextype):

2
patacrep/songs/__init__.py

@ -25,7 +25,7 @@ def cached_name(datadir, filename):
raise
return fullpath
class DataSubpath(object):
class DataSubpath:
"""A path divided in two path: a datadir, and its subpath.
- This object can represent either a file or directory.

Loading…
Cancel
Save