[SCM] morituri/master: pep8 cleanup

js at users.alioth.debian.org js at users.alioth.debian.org
Sun Oct 19 20:09:40 UTC 2014


The following commit has been merged in the master branch:
commit fbb75dc91bb071f9bc20b462f7266bdbce3a5450
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date:   Sat Nov 10 21:48:04 2012 +0000

    pep8 cleanup

diff --git a/morituri/common/accurip.py b/morituri/common/accurip.py
index babd452..4f5c701 100644
--- a/morituri/common/accurip.py
+++ b/morituri/common/accurip.py
@@ -6,17 +6,17 @@
 # Copyright (C) 2009 Thomas Vander Stichele
 
 # This file is part of morituri.
-# 
+#
 # morituri is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # the Free Software Foundation, either version 3 of the License, or
 # (at your option) any later version.
-# 
+#
 # morituri is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 # GNU General Public License for more details.
-# 
+#
 # You should have received a copy of the GNU General Public License
 # along with morituri.  If not, see <http://www.gnu.org/licenses/>.
 
@@ -30,7 +30,9 @@ from morituri.common import log
 
 _CACHE_DIR = os.path.join(os.path.expanduser('~'), '.morituri', 'cache')
 
+
 class AccuCache(log.Loggable):
+
     def __init__(self):
         if not os.path.exists(_CACHE_DIR):
             self.debug('Creating cache directory %s', _CACHE_DIR)
@@ -87,7 +89,7 @@ class AccuCache(log.Loggable):
         handle = open(path, 'wb')
         handle.write(data)
         handle.close()
-           
+
     def _read(self, url):
         self.debug("Reading %s from cache", url)
         path = self._getPath(url)
@@ -96,6 +98,7 @@ class AccuCache(log.Loggable):
         handle.close()
         return data
 
+
 def getAccurateRipResponses(data):
     ret = []
 
@@ -108,6 +111,7 @@ def getAccurateRipResponses(data):
 
     return ret
 
+
 class AccurateRipResponse(object):
     """
     I represent the response of the AccurateRip online database.
@@ -137,4 +141,4 @@ class AccurateRipResponse(object):
             checksum = "%08x" % struct.unpack("<L", data[pos + 1:pos + 5])[0]
             pos += 9
             self.confidences.append(confidence)
-            self.checksums.append(checksum) 
+            self.checksums.append(checksum)

-- 
morituri packaging



More information about the pkg-multimedia-commits mailing list