From f5f4226891e269dc81cfd26b495d77669b0f151c Mon Sep 17 00:00:00 2001 From: Samuel Mehrbrodt Date: Mon, 12 Jun 2017 20:09:50 +0200 Subject: [PATCH] PEP8 fixes --- openlp/plugins/songs/songsplugin.py | 10 +++++----- setup.cfg | 2 +- .../functional/openlp_plugins/songs/test_mediaitem.py | 10 +++++----- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/openlp/plugins/songs/songsplugin.py b/openlp/plugins/songs/songsplugin.py index 3968a184a..4052265f6 100644 --- a/openlp/plugins/songs/songsplugin.py +++ b/openlp/plugins/songs/songsplugin.py @@ -73,35 +73,35 @@ ${title}
%if authors_none: <% - authors = ", ".join(authors_none) + authors = ", ".join(authors_none) %> ${authors_none_label}: ${authors}
%endif %if authors_words_music: <% - authors = ", ".join(authors_words_music) + authors = ", ".join(authors_words_music) %> ${authors_words_music_label}: ${authors}
%endif %if authors_words: <% - authors = ", ".join(authors_words) + authors = ", ".join(authors_words) %> ${authors_words_label}: ${authors}
%endif %if authors_music: <% - authors = ", ".join(authors_music) + authors = ", ".join(authors_music) %> ${authors_music_label}: ${authors}
%endif %if authors_translation: <% - authors = ", ".join(authors_translation) + authors = ", ".join(authors_translation) %> ${authors_translation_label}: ${authors}
%endif diff --git a/setup.cfg b/setup.cfg index 1291f1b6a..0ecc03ae8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,4 +1,4 @@ -[pycodestyle] +[pep8] exclude=resources.py,vlc.py max-line-length = 120 ignore = E402,E722 diff --git a/tests/functional/openlp_plugins/songs/test_mediaitem.py b/tests/functional/openlp_plugins/songs/test_mediaitem.py index f5e85dcca..e4f9a5e5c 100644 --- a/tests/functional/openlp_plugins/songs/test_mediaitem.py +++ b/tests/functional/openlp_plugins/songs/test_mediaitem.py @@ -40,35 +40,35 @@ ${title}
%if authors_none: <% - authors = ", ".join(authors_none) + authors = ", ".join(authors_none) %> ${authors_none_label}: ${authors}
%endif %if authors_words_music: <% - authors = ", ".join(authors_words_music) + authors = ", ".join(authors_words_music) %> ${authors_words_music_label}: ${authors}
%endif %if authors_words: <% - authors = ", ".join(authors_words) + authors = ", ".join(authors_words) %> ${authors_words_label}: ${authors}
%endif %if authors_music: <% - authors = ", ".join(authors_music) + authors = ", ".join(authors_music) %> ${authors_music_label}: ${authors}
%endif %if authors_translation: <% - authors = ", ".join(authors_translation) + authors = ", ".join(authors_translation) %> ${authors_translation_label}: ${authors}
%endif