diff --git a/openlp/core/lib/theme.py b/openlp/core/lib/theme.py index 486f89b18..a5dcf881f 100644 --- a/openlp/core/lib/theme.py +++ b/openlp/core/lib/theme.py @@ -306,7 +306,7 @@ class ThemeXML(object): def add_font(self, name, color, size, override, fonttype=u'main', bold=u'False', italics=u'False', line_adjustment=0, - xpos=0, ypos=0, width=0, height=0 , outline=u'False', + xpos=0, ypos=0, width=0, height=0, outline=u'False', outline_color=u'#ffffff', outline_pixel=2, shadow=u'False', shadow_color=u'#ffffff', shadow_pixel=5): """ @@ -550,7 +550,7 @@ class ThemeXML(object): element = u'size' return False, master, element, value - def _create_attr(self, master , element, value): + def _create_attr(self, master, element, value): """ Create the attributes with the correct data types and name format """ diff --git a/openlp/core/ui/mainwindow.py b/openlp/core/ui/mainwindow.py index 68e93e93b..7d84c7b84 100644 --- a/openlp/core/ui/mainwindow.py +++ b/openlp/core/ui/mainwindow.py @@ -985,11 +985,11 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow): # We have a good file, import it. for section_key in import_keys: value = import_settings.value(section_key) - settings.setValue(u'%s' % (section_key) , + settings.setValue(u'%s' % (section_key), QtCore.QVariant(value)) now = datetime.now() settings.beginGroup(self.headerSection) - settings.setValue( u'file_imported' , QtCore.QVariant(import_file_name)) + settings.setValue(u'file_imported', QtCore.QVariant(import_file_name)) settings.setValue(u'file_date_imported', now.strftime("%Y-%m-%d %H:%M")) settings.endGroup() diff --git a/openlp/core/ui/serviceitemeditdialog.py b/openlp/core/ui/serviceitemeditdialog.py index af49680dd..8410f4491 100644 --- a/openlp/core/ui/serviceitemeditdialog.py +++ b/openlp/core/ui/serviceitemeditdialog.py @@ -57,7 +57,7 @@ class Ui_ServiceItemEditDialog(object): self.dialogLayout.addLayout(self.buttonLayout, 0, 1) self.buttonBox = create_button_box(serviceItemEditDialog, u'buttonBox', [u'cancel', u'save']) - self.dialogLayout.addWidget(self.buttonBox , 1, 0, 1, 2) + self.dialogLayout.addWidget(self.buttonBox, 1, 0, 1, 2) self.retranslateUi(serviceItemEditDialog) def retranslateUi(self, serviceItemEditDialog): diff --git a/openlp/core/ui/servicemanager.py b/openlp/core/ui/servicemanager.py index bc075c3e1..aa4c9b6b4 100644 --- a/openlp/core/ui/servicemanager.py +++ b/openlp/core/ui/servicemanager.py @@ -181,7 +181,7 @@ class ServiceManager(QtGui.QWidget): self.serviceManagerList.moveUp = self.orderToolbar.addToolbarAction( u'moveUp', text=translate('OpenLP.ServiceManager', 'Move &up'), icon=u':/services/service_up.png', - tooltip=translate( 'OpenLP.ServiceManager', + tooltip=translate('OpenLP.ServiceManager', 'Move item up one position in the service.'), shortcuts=[QtCore.Qt.Key_PageUp], category=UiStrings().Service, triggers=self.onServiceUp) diff --git a/openlp/plugins/bibles/lib/http.py b/openlp/plugins/bibles/lib/http.py index 72ffed487..7f2ddeccd 100644 --- a/openlp/plugins/bibles/lib/http.py +++ b/openlp/plugins/bibles/lib/http.py @@ -363,7 +363,7 @@ class CWExtract(object): class HTTPBible(BibleDB): - log.info(u'%s HTTPBible loaded' , __name__) + log.info(u'%s HTTPBible loaded', __name__) def __init__(self, parent, **kwargs): """ diff --git a/openlp/plugins/songs/lib/songimport.py b/openlp/plugins/songs/lib/songimport.py index d820998c9..6fd9dd403 100644 --- a/openlp/plugins/songs/lib/songimport.py +++ b/openlp/plugins/songs/lib/songimport.py @@ -24,6 +24,7 @@ # with this program; if not, write to the Free Software Foundation, Inc., 59 # # Temple Place, Suite 330, Boston, MA 02111-1307 USA # ############################################################################### + import logging import re import shutil @@ -308,7 +309,7 @@ class SongImport(QtCore.QObject): verses_changed_to_other[verse_def] = new_verse_def other_count += 1 verse_tag = VerseType.Tags[VerseType.Other] - log.info(u'Versetype %s changing to %s' , verse_def, + log.info(u'Versetype %s changing to %s', verse_def, new_verse_def) verse_def = new_verse_def sxml.add_verse_to_lyrics(verse_tag, verse_def[1:], verse_text, lang) diff --git a/openlp/plugins/songusage/forms/songusagedetailform.py b/openlp/plugins/songusage/forms/songusagedetailform.py index 54c8d6c3b..363455ea5 100644 --- a/openlp/plugins/songusage/forms/songusagedetailform.py +++ b/openlp/plugins/songusage/forms/songusagedetailform.py @@ -118,7 +118,7 @@ class SongUsageDetailForm(QtGui.QDialog, Ui_SongUsageDetailDialog): fileHandle = open(outname, u'w') for instance in usage: record = u'\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",' \ - u'\"%s\",\"%s\"\n' % ( instance.usagedate, + u'\"%s\",\"%s\"\n' % (instance.usagedate, instance.usagetime, instance.title, instance.copyright, instance.ccl_number, instance.authors, instance.plugin_name, instance.source)