pep fixes

This commit is contained in:
Phill Ridout 2015-01-22 13:19:10 +00:00
parent 88684425da
commit 7870cecd14

View File

@ -175,31 +175,25 @@ def update_reference_separators():
""" """
Updates separators and matches for parsing and formating scripture references. Updates separators and matches for parsing and formating scripture references.
""" """
default_separators = ['|'.join([translate('BiblesPlugin', ':', default_separators = [
'Verse identifier e.g. Genesis 1 : 1 = Genesis Chapter 1 Verse 1'), '|'.join([
translate('BiblesPlugin', 'v', translate('BiblesPlugin', ':', 'Verse identifier e.g. Genesis 1 : 1 = Genesis Chapter 1 Verse 1'),
'Verse identifier e.g. Genesis 1 v 1 = Genesis Chapter 1 Verse 1'), translate('BiblesPlugin', 'v','Verse identifier e.g. Genesis 1 v 1 = Genesis Chapter 1 Verse 1'),
translate('BiblesPlugin', 'V', translate('BiblesPlugin', 'V', 'Verse identifier e.g. Genesis 1 V 1 = Genesis Chapter 1 Verse 1'),
'Verse identifier e.g. Genesis 1 V 1 = Genesis Chapter 1 Verse 1'), translate('BiblesPlugin', 'verse', 'Verse identifier e.g. Genesis 1 verse 1 = Genesis Chapter 1 Verse 1'),
translate('BiblesPlugin', 'verse',
'Verse identifier e.g. Genesis 1 verse 1 = Genesis Chapter 1 Verse 1'),
translate('BiblesPlugin', 'verses', translate('BiblesPlugin', 'verses',
'Verse identifier e.g. Genesis 1 verses 1 - 2 = ' 'Verse identifier e.g. Genesis 1 verses 1 - 2 = Genesis Chapter 1 Verses 1 to 2')]),
'Genesis Chapter 1 Verses 1 to 2')]), '|'.join([
'|'.join([translate('BiblesPlugin', '-', translate('BiblesPlugin', '-',
'range identifier e.g. Genesis 1 verse 1 - 2 = ' 'range identifier e.g. Genesis 1 verse 1 - 2 = Genesis Chapter 1 Verses 1 To 2'),
'Genesis Chapter 1 Verses 1 To 2'),
translate('BiblesPlugin', 'to', translate('BiblesPlugin', 'to',
'range identifier e.g. Genesis 1 verse 1 - 2 = ' 'range identifier e.g. Genesis 1 verse 1 - 2 = Genesis Chapter 1 Verses 1 To 2')]),
'Genesis Chapter 1 Verses 1 To 2')]), '|'.join([
'|'.join([translate('BiblesPlugin', ',', translate('BiblesPlugin', ',', 'connecting identifier e.g. Genesis 1 verse 1 - 2, 4 - 5 = '
'connecting identifier e.g. Genesis 1 verse 1 - 2, 4 - 5 = '
'Genesis Chapter 1 Verses 1 To 2 And Verses 4 To 5'), 'Genesis Chapter 1 Verses 1 To 2 And Verses 4 To 5'),
translate('BiblesPlugin', 'and', translate('BiblesPlugin', 'and', 'connecting identifier e.g. Genesis 1 verse 1 - 2 and 4 - 5 = '
'connecting identifier e.g. Genesis 1 verse 1 - 2 and 4 - 5 = '
'Genesis Chapter 1 Verses 1 To 2 And Verses 4 To 5')]), 'Genesis Chapter 1 Verses 1 To 2 And Verses 4 To 5')]),
'|'.join([translate('BiblesPlugin', 'end', '|'.join([translate('BiblesPlugin', 'end', 'ending identifier e.g. Genesis 1 verse 1 - end = '
'ending identifier e.g. Genesis 1 verse 1 - end = '
'Genesis Chapter 1 Verses 1 To The Last Verse')])] 'Genesis Chapter 1 Verses 1 To The Last Verse')])]
settings = Settings() settings = Settings()
settings.beginGroup('bibles') settings.beginGroup('bibles')