Browse Source

Changing misleading class name

pull/54/head
Louis 11 years ago
parent
commit
b645ec3dc5
  1. 6
      songbook_core/plastex_chord.py

6
songbook_core/plastex_chord.py

@ -25,7 +25,7 @@ def wrap_displaymath(cls):
""" """
# pylint: disable=no-init,too-few-public-methods # pylint: disable=no-init,too-few-public-methods
class DisplayMath(cls): class WrappedClass(cls):
"""Wrapper to LaTeX environment updating IN_VERSE""" """Wrapper to LaTeX environment updating IN_VERSE"""
blockType = True blockType = True
# pylint: disable=super-on-old-class,global-statement,no-member # pylint: disable=super-on-old-class,global-statement,no-member
@ -36,8 +36,8 @@ def wrap_displaymath(cls):
IN_VERSE += 1 IN_VERSE += 1
else: else:
IN_VERSE -= 1 IN_VERSE -= 1
super(DisplayMath, self).invoke(tex) super(WrappedClass, self).invoke(tex)
return DisplayMath return WrappedClass
# pylint: disable=too-many-public-methods # pylint: disable=too-many-public-methods
@wrap_displaymath @wrap_displaymath

Loading…
Cancel
Save