[gnome-music] make pep8 happy



commit 5835f33fe316a15e8a4050e433f44c6d2281c620
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Mon May 26 11:46:30 2014 +0200

    make pep8 happy

 gnomemusic/grilo.py |    2 +-
 gnomemusic/query.py |   54 +++++++++++++++++++++++++-------------------------
 gnomemusic/view.py  |    1 -
 3 files changed, 28 insertions(+), 29 deletions(-)
---
diff --git a/gnomemusic/grilo.py b/gnomemusic/grilo.py
index fcee3f8..f33b24a 100644
--- a/gnomemusic/grilo.py
+++ b/gnomemusic/grilo.py
@@ -125,7 +125,7 @@ class Grilo(GObject.GObject):
         self.pending_event_id = 0
         self.changes_pending['Albums'] = True
         self.changes_pending['Artists'] = True
-        self.changes_pending['Songs'] = True 
+        self.changes_pending['Songs'] = True
         self.emit('changes-pending')
         return False
 
diff --git a/gnomemusic/query.py b/gnomemusic/query.py
index bfa8a5f..87ecf87 100644
--- a/gnomemusic/query.py
+++ b/gnomemusic/query.py
@@ -74,9 +74,9 @@ class Query():
         )
     }
     '''.replace('\n', ' ').strip() % {
-        'music_dir': Query.MUSIC_DIR,
-        'download_dir': Query.DOWNLOAD_DIR
-    }
+            'music_dir': Query.MUSIC_DIR,
+            'download_dir': Query.DOWNLOAD_DIR
+        }
 
         return query
 
@@ -206,10 +206,10 @@ class Query():
         }
     ORDER BY fn:lower-case(?title) ?author ?albumyear
     '''.replace('\n', ' ').strip() % {
-        'where_clause': where_clause.replace('\n', ' ').strip(),
-        'music_dir': Query.MUSIC_DIR,
-        'download_dir': Query.DOWNLOAD_DIR
-    }
+            'where_clause': where_clause.replace('\n', ' ').strip(),
+            'music_dir': Query.MUSIC_DIR,
+            'download_dir': Query.DOWNLOAD_DIR
+        }
 
         return query
 
@@ -355,10 +355,10 @@ class Query():
         }
     ORDER BY fn:lower-case(?author) ?albumyear nie:title(?album)
     '''.replace('\n', ' ').strip() % {
-        'where_clause': where_clause.replace('\n', ' ').strip(),
-        'music_dir': Query.MUSIC_DIR,
-        'download_dir': Query.DOWNLOAD_DIR
-    }
+            'where_clause': where_clause.replace('\n', ' ').strip(),
+            'music_dir': Query.MUSIC_DIR,
+            'download_dir': Query.DOWNLOAD_DIR
+        }
 
         return query
 
@@ -394,10 +394,10 @@ class Query():
         }
     ORDER BY tracker:added(?song)
     '''.replace('\n', ' ').strip() % {
-        'where_clause': where_clause.replace('\n', ' ').strip(),
-        'music_dir': Query.MUSIC_DIR,
-        'download_dir': Query.DOWNLOAD_DIR
-    }
+            'where_clause': where_clause.replace('\n', ' ').strip(),
+            'music_dir': Query.MUSIC_DIR,
+            'download_dir': Query.DOWNLOAD_DIR
+        }
 
         return query
 
@@ -441,10 +441,10 @@ class Query():
          nmm:trackNumber(?song)
          tracker:added(?song)
     '''.replace('\n', ' ').strip() % {
-        'album_id': album_id,
-        'music_dir': Query.MUSIC_DIR,
-        'download_dir': Query.DOWNLOAD_DIR
-    }
+            'album_id': album_id,
+            'music_dir': Query.MUSIC_DIR,
+            'download_dir': Query.DOWNLOAD_DIR
+        }
 
         return query
 
@@ -471,10 +471,10 @@ class Query():
         )
     }
     """.replace("\n", " ").strip() % {
-        'album_id': album_id,
-        'music_dir': Query.MUSIC_DIR,
-        'download_dir': Query.DOWNLOAD_DIR
-    }
+            'album_id': album_id,
+            'music_dir': Query.MUSIC_DIR,
+            'download_dir': Query.DOWNLOAD_DIR
+        }
         return query
 
     @staticmethod
@@ -517,10 +517,10 @@ class Query():
         )
     }
     """.replace("\n", " ").strip() % {
-        'song_id': song_id,
-        'music_dir': Query.MUSIC_DIR,
-        'download_dir': Query.DOWNLOAD_DIR
-    }
+            'song_id': song_id,
+            'music_dir': Query.MUSIC_DIR,
+            'download_dir': Query.DOWNLOAD_DIR
+        }
         return query
 
     @staticmethod
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index b4b2bef..ce579f1 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -1067,7 +1067,6 @@ class Playlist(ViewContainer):
         self.playlists_sidebar.set_sensitive(not self.header_bar._selectionMode)
         self.menubutton.set_sensitive(not self.header_bar._selectionMode)
 
-
     @log
     def _on_play_activate(self, menuitem, data=None):
         _iter = self._model.get_iter_first()


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