From 020ee2b1edcd2103005ea92df4b04589ba814f96 Mon Sep 17 00:00:00 2001 From: e5e4eaeacd39c5cfba4d7c852c48277ae50331e6 Date: Sat, 23 Aug 2014 11:48:26 +1000 Subject: [PATCH] Fix Travis errors I was over zealous on the brackets for formatting --- beets/autotag/match.py | 2 +- beets/importer.py | 10 +++++----- beetsplug/lyrics.py | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/beets/autotag/match.py b/beets/autotag/match.py index 20565ae67..fb20889de 100644 --- a/beets/autotag/match.py +++ b/beets/autotag/match.py @@ -377,7 +377,7 @@ def tag_album(items, search_artist=None, search_album=None, likelies, consensus = current_metadata(items) cur_artist = likelies['artist'] cur_album = likelies['album'] - log.debug(u'Tagging {0} - {1}'.format((cur_artist, cur_album))) + log.debug(u'Tagging {0} - {1}'.format(cur_artist, cur_album)) # The output result (distance, AlbumInfo) tuples (keyed by MB album # ID). diff --git a/beets/importer.py b/beets/importer.py index 4e9e3167e..75931758f 100644 --- a/beets/importer.py +++ b/beets/importer.py @@ -636,12 +636,12 @@ class ImportTask(object): self.replaced_items[item] = dup_items for dup_item in dup_items: log.debug(u'replacing item {0}: {1}' - .format((dup_item.id, - displayable_path(item.path)))) + .format(dup_item.id, + displayable_path(item.path))) dup_item.remove() log.debug(u'{0} of {1} items replaced' - .format((len(self.replaced_items), - len(self.imported_items())))) + .format(len(self.replaced_items), + len(self.imported_items()))) def choose_match(self, session): """Ask the session which match should apply and apply it. @@ -1040,7 +1040,7 @@ def query_tasks(session): # Search for albums. for album in session.lib.albums(session.query): log.debug(u'yielding album {0}: {1} - {2}' - .format((album.id, album.albumartist, album.album))) + .format(album.id, album.albumartist, album.album)) items = list(album.items()) # Clear IDs from re-tagged items so they appear "fresh" when diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py index 78168c41f..7b4551c72 100644 --- a/beetsplug/lyrics.py +++ b/beetsplug/lyrics.py @@ -515,7 +515,7 @@ class LyricsPlugin(BeetsPlugin): # Skip if the item already has lyrics. if not force and item.lyrics: log.log(loglevel, u'lyrics already present: {0} - {1}' - .format((item.artist, item.title))) + .format(item.artist, item.title)) return lyrics = None