[gnome-music] pep8: fix 'E713 test for membership should be 'not in'' and blacklist E265



commit 6cf35014775196c521f10ba6c85fcc23ec3400d4
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Thu Mar 27 22:43:06 2014 +0100

    pep8: fix 'E713 test for membership should be 'not in'' and blacklist E265

 .travis.yml                 |    2 +-
 gnomemusic/albumArtCache.py |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/.travis.yml b/.travis.yml
index f4c9fda..40a69f4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,7 +9,7 @@ install:
   - pip install pep8 pyflakes --use-mirrors
 script:
   - "pyflakes gnomemusic"
-  - "pep8 --ignore=E501,E225 --show-source --show-pep8 gnomemusic"
+  - "pep8 --ignore=E501,E225,E265 --show-source --show-pep8 gnomemusic"
   - "./autogen.sh"
   - "make"
   - "make distcheck"
diff --git a/gnomemusic/albumArtCache.py b/gnomemusic/albumArtCache.py
index df3462a..89abedc 100644
--- a/gnomemusic/albumArtCache.py
+++ b/gnomemusic/albumArtCache.py
@@ -309,7 +309,7 @@ class AlbumArtCache:
     def _draw_rounded_path(self, x, y, width, height, radius):
         key = "%dx%d %dx%d:%d" % (width, height, x, y, radius)
         self.frame_lock.acquire()
-        if not key in self.frame_cache:
+        if key not in self.frame_cache:
             surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, width, height)
             ctx = cairo.Context(surface)
             ctx.new_sub_path()
@@ -362,7 +362,7 @@ class AlbumArtCache:
         if not uri:
             return
 
-        if not uri in self.requested_uris:
+        if uri not in self.requested_uris:
             request = GetUriRequest(uri, artist, album, self._on_get_uri_request_finish, data)
             self.requested_uris[uri] = request
         else:


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