[gnome-music] Pep8 fixes



commit b2aef88c69b9e1469949fca6ef9c73ee140056b3
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Tue Aug 18 12:32:40 2015 +0200

    Pep8 fixes

 gnomemusic/albumArtCache.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gnomemusic/albumArtCache.py b/gnomemusic/albumArtCache.py
index f87cc1a..b3b6f3a 100644
--- a/gnomemusic/albumArtCache.py
+++ b/gnomemusic/albumArtCache.py
@@ -134,7 +134,7 @@ class AlbumArtCache(GObject.GObject):
             item.start()
             item.join(30)
         except Exception as e:
-            logger.warn("worker item %s: error %s",  item, str(e))
+            logger.warn("worker item %s: error %s", item, str(e))
 
     @log
     def __init__(self):
@@ -219,7 +219,7 @@ class AlbumArtCache(GObject.GObject):
 
             t = Thread(target=self.lookup_worker, args=(item, width, height, callback, itr, artist, album))
             THREAD_QUEUE.append(t)
-            self.emit('thread-added', len(THREAD_QUEUE)-1)
+            self.emit('thread-added', len(THREAD_QUEUE) - 1)
         except Exception as e:
             logger.warn("Error: %s, %s", e.__class__, e)
 
@@ -277,7 +277,7 @@ class AlbumArtCache(GObject.GObject):
 
             t = Thread(target=self.download_worker, args=(item, width, height, path, callback, itr, artist, 
album, uri))
             THREAD_QUEUE.append(t)
-            self.emit('thread-added', len(THREAD_QUEUE)-1)
+            self.emit('thread-added', len(THREAD_QUEUE) - 1)
         except Exception as e:
             logger.warn("Error: %s", e)
             self.finish(item, None, None, callback, itr, width, height, artist, album)
@@ -297,7 +297,7 @@ class AlbumArtCache(GObject.GObject):
 
             t = Thread(target=self.download_worker, args=(item, width, height, path, callback, itr, artist, 
album, uri))
             THREAD_QUEUE.append(t)
-            self.emit('thread-added', len(THREAD_QUEUE)-1)
+            self.emit('thread-added', len(THREAD_QUEUE) - 1)
         except Exception as e:
             logger.warn("Error: %s", e)
             self.finish(item, None, None, callback, itr, width, height, artist, album)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]