[gnome-music/wip/merge: 149/343] Fix pep8 issues



commit c9a71ac1c862f404384fe3e0dc3b81d67a36eb7a
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Tue Jul 16 14:41:06 2013 +0200

    Fix pep8 issues

 gnomemusic/albumArtCache.py |   18 +++++++++---------
 gnomemusic/grilo.py         |    1 +
 gnomemusic/view.py          |   10 +++++-----
 3 files changed, 15 insertions(+), 14 deletions(-)
---
diff --git a/gnomemusic/albumArtCache.py b/gnomemusic/albumArtCache.py
index 2cd8d3d..ec4e355 100644
--- a/gnomemusic/albumArtCache.py
+++ b/gnomemusic/albumArtCache.py
@@ -75,9 +75,9 @@ class AlbumArtCache:
                                      int(pixbuf.get_height() + border * 2))
         ctx = cairo.Context(surface)
         self._draw_rounded_path(ctx, 0, 0,
-                             pixbuf.get_width() + border * 2,
-                             pixbuf.get_height() + border * 2,
-                             3)
+                                pixbuf.get_width() + border * 2,
+                                pixbuf.get_height() + border * 2,
+                                3)
         result = Gdk.pixbuf_get_from_surface(surface, 0, 0,
                                              pixbuf.get_width() + border * 2,
                                              pixbuf.get_height() + border * 2)
@@ -119,6 +119,7 @@ class AlbumArtCache:
         def on_read_ready(object, res, data=None):
             try:
                 stream = object.read_finish(res)
+
                 def on_pixbuf_ready(source, res, data=None):
                     try:
                         pixbuf = GdkPixbuf.Pixbuf.new_from_stream_finish(res)
@@ -135,8 +136,8 @@ class AlbumArtCache:
                         if self.logLookupErrors:
                             print("ERROR:", error)
 
-                    self._try_load(size, artist, album, i+1,
-                                    icon_format, callback)
+                    self._try_load(size, artist, album, i + 1,
+                                   icon_format, callback)
 
                 GdkPixbuf.Pixbuf.new_from_stream_async(stream, None,
                                                        on_pixbuf_ready, None)
@@ -146,8 +147,7 @@ class AlbumArtCache:
                 if self.logLookupErrors:
                     print("ERROR:", error)
 
-
-            self._try_load(size, artist, album, i+1, icon_format, callback)
+            self._try_load(size, artist, album, i + 1, icon_format, callback)
 
         file.read_async(GLib.PRIORITY_DEFAULT, None, on_read_ready, None)
 
@@ -226,8 +226,8 @@ class AlbumArtCache:
             for block_pair in blocks:
                 # Go through blocks, find the earliest block we can
                 [success, start, end] = self._strip_find_next_block(p,
-                                                                block_pair[0],
-                                                                block_pair[1])
+                                                                    block_pair[0],
+                                                                    block_pair[1])
                 if success:
                     if pos1 == -1 or start < pos1:
                         pos1 = start
diff --git a/gnomemusic/grilo.py b/gnomemusic/grilo.py
index 828ff26..52a113b 100644
--- a/gnomemusic/grilo.py
+++ b/gnomemusic/grilo.py
@@ -2,6 +2,7 @@ from gi.repository import Grl, GLib, GObject
 
 from gnomemusic.query import Query
 
+
 class Grilo(GObject.GObject):
 
     __gsignals__ = {
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index ee7410a..e857416 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -186,17 +186,17 @@ class ViewContainer(Gtk.Stack):
     def _updateAlbumArt(self, item, iter):
         def _albumArtCacheLookUp(icon, data=None):
             if icon:
-                self._model.set_value(iter, 4, 
-                    albumArtCache.getDefault()._make_icon_frame(icon))
+                self._model.set_value(iter, 4,
+                                      albumArtCache.getDefault()._make_icon_frame(icon))
             else:
                 self._model.set_value(iter, 4, None)
                 self.emit("album-art-updated")
             pass
 
         albumArtCache.getDefault().lookup_or_resolve(item,
-                                                   self._iconWidth,
-                                                   self._iconHeight,
-                                                   _albumArtCacheLookUp)
+                                                     self._iconWidth,
+                                                     self._iconHeight,
+                                                     _albumArtCacheLookUp)
         return False
 
     def _addListRenderers(self):


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