[gnome-music/roignac/nowplaying_artists: 2/4] Make pep8 and pyflakes happy



commit 978bb05068d5d1b96e8bbfe53b462517c6a53162
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Mon Aug 5 22:23:16 2013 +0200

    Make pep8 and pyflakes happy

 gnomemusic/albumArtCache.py |   10 ++++------
 gnomemusic/widgets.py       |    2 +-
 2 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/gnomemusic/albumArtCache.py b/gnomemusic/albumArtCache.py
index 6ba9099..f5836aa 100644
--- a/gnomemusic/albumArtCache.py
+++ b/gnomemusic/albumArtCache.py
@@ -221,12 +221,10 @@ class AlbumArtCache:
         self.frame_lock = threading.Lock()
 
         self._keybuilder_funcs = [
-            lambda artist, album:
-            'album-%s-%s' % (self._normalize_and_hash(artist),
-                self._normalize_and_hash(album)),
-            lambda artist, album:
-            'album-%s-%s' % (self._normalize_and_hash(album),
-                self._normalize_and_hash(None))
+            lambda artist, album: 'album-%s-%s' % (
+                self._normalize_and_hash(artist), self._normalize_and_hash(album)),
+            lambda artist, album: 'album-%s-%s' % (
+                self._normalize_and_hash(album), self._normalize_and_hash(None))
         ]
 
         try:
diff --git a/gnomemusic/widgets.py b/gnomemusic/widgets.py
index e463763..1f7457b 100644
--- a/gnomemusic/widgets.py
+++ b/gnomemusic/widgets.py
@@ -286,7 +286,7 @@ class AlbumWidget(Gtk.EventBox):
                 title = '<span>%s</span>' % escapedTitle
                 iconVisible = False
             else:
-                title = '<span color='grey'>%s</span>' % escapedTitle
+                title = '<span color=\'grey\'>%s</span>' % escapedTitle
                 iconVisible = False
             playlist.set_value(_iter, 0, title)
             if(playlist.get_value(_iter, 7) != ERROR_ICON_NAME):


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