forked from openlp/openlp
pep8 fixes
This commit is contained in:
parent
bbc670cc36
commit
5468def937
@ -143,6 +143,7 @@ def format_milliseconds(milliseconds):
|
||||
seconds=seconds,
|
||||
millis=millis)
|
||||
|
||||
|
||||
from .mediacontroller import MediaController
|
||||
from .playertab import PlayerTab
|
||||
|
||||
|
@ -423,4 +423,5 @@ class BibleManager(OpenLPMixin, RegistryProperties):
|
||||
for bible in self.db_cache:
|
||||
self.db_cache[bible].finalise()
|
||||
|
||||
|
||||
__all__ = ['BibleFormat']
|
||||
|
@ -197,6 +197,7 @@ class PPTViewer(QtWidgets.QWidget):
|
||||
def openDialog(self):
|
||||
self.pptEdit.setText(QtWidgets.QFileDialog.getOpenFileName(self, 'Open file')[0])
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
pptdll = cdll.LoadLibrary(r'pptviewlib.dll')
|
||||
pptdll.SetDebug(1)
|
||||
|
@ -230,8 +230,8 @@ class SongFormat(object):
|
||||
'class': ChordProImport,
|
||||
'name': 'ChordPro',
|
||||
'prefix': 'chordPro',
|
||||
'filter': '{text} (*.cho *.crd *.chordpro *.chopro *.txt)'.format(text=translate('SongsPlugin.ImportWizardForm',
|
||||
'ChordPro Files'))
|
||||
'filter': '{text} (*.cho *.crd *.chordpro *.chopro *.txt)'.format(
|
||||
text=translate('SongsPlugin.ImportWizardForm', 'ChordPro Files'))
|
||||
},
|
||||
DreamBeam: {
|
||||
'class': DreamBeamImport,
|
||||
|
@ -31,6 +31,7 @@ from .songimport import SongImport
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class ChordProImport(SongImport):
|
||||
"""
|
||||
The :class:`ChordProImport` class provides OpenLP with the
|
||||
@ -148,5 +149,5 @@ class ChordProImport(SongImport):
|
||||
# strip the final '}' and return the tag name
|
||||
return line[:-1], None
|
||||
tag_name = line[:colon_idx]
|
||||
tag_value = line[colon_idx+1:-1].strip()
|
||||
tag_value = line[colon_idx + 1:-1].strip()
|
||||
return tag_name, tag_value
|
||||
|
@ -250,5 +250,6 @@ def main():
|
||||
print_qt_image_formats()
|
||||
print_enchant_backends_and_languages()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
@ -218,5 +218,6 @@ def main():
|
||||
else:
|
||||
parser.print_help()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
@ -120,11 +120,11 @@ class TestCategoryActionList(TestCase):
|
||||
self.list.add(self.action2)
|
||||
|
||||
# WHEN: Iterating over the list
|
||||
l = [a for a in self.list]
|
||||
list = [a for a in self.list]
|
||||
# THEN: Make sure they are returned in correct order
|
||||
self.assertEquals(len(self.list), 2)
|
||||
self.assertIs(l[0], self.action1)
|
||||
self.assertIs(l[1], self.action2)
|
||||
self.assertIs(list[0], self.action1)
|
||||
self.assertIs(list[1], self.action2)
|
||||
|
||||
def test_remove(self):
|
||||
"""
|
||||
|
@ -116,6 +116,7 @@ class TestFieldDesc:
|
||||
self.field_type = field_type
|
||||
self.size = size
|
||||
|
||||
|
||||
TEST_DATA_ENCODING = 'cp1252'
|
||||
CODE_PAGE_MAPPINGS = [
|
||||
(852, 'cp1250'), (737, 'cp1253'), (775, 'cp1257'), (855, 'cp1251'), (857, 'cp1254'),
|
||||
|
Loading…
Reference in New Issue
Block a user