forked from openlp/openlp
Fix some linting issues
This commit is contained in:
parent
6a67a77240
commit
ee7fb49e49
@ -232,6 +232,7 @@ def qmd5_hash(salt, data):
|
||||
log.debug('qmd5_hash() returning "%s"' % hash_value)
|
||||
return decode(hash_value.data(), 'ascii')
|
||||
|
||||
|
||||
def clean_button_text(button_text):
|
||||
"""
|
||||
Clean the & and other characters out of button text
|
||||
@ -240,6 +241,7 @@ def clean_button_text(button_text):
|
||||
"""
|
||||
return button_text.replace('&', '').replace('< ', '').replace(' >', '')
|
||||
|
||||
|
||||
from .openlpmixin import OpenLPMixin
|
||||
from .registry import Registry
|
||||
from .registrymixin import RegistryMixin
|
||||
|
@ -202,3 +202,4 @@ class TestCommonFunctions(TestCase):
|
||||
|
||||
# THEN: The text should have been cleaned
|
||||
self.assertEqual(expected_text, actual_text, 'The text should be clean')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user