[SCM] morituri/master: pychecker fixes

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


The following commit has been merged in the master branch:
commit 3e0363de323b8164e358c0ac76d970d9ecb6e042
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date:   Sun Dec 2 12:31:45 2012 +0000

    pychecker fixes

diff --git a/morituri/common/config.py b/morituri/common/config.py
index 3ce39e3..d85b91a 100644
--- a/morituri/common/config.py
+++ b/morituri/common/config.py
@@ -77,10 +77,11 @@ class Config(log.Loggable):
         except KeyError:
             section = 'drive:' + urllib.quote('%s:%s:%s' % (vendor, model, release))
             self._parser.add_section(section)
+            __pychecker__ = 'no-local'
             read_offset = str(offset)
             for key in ['vendor', 'model', 'release', 'read_offset']:
                 self._parser.set(section, key, locals()[key].strip())
-            
+
         self.write()
 
     def getReadOffset(self, vendor, model, release):
diff --git a/morituri/rip/drive.py b/morituri/rip/drive.py
index 33e5998..27eb12f 100644
--- a/morituri/rip/drive.py
+++ b/morituri/rip/drive.py
@@ -38,7 +38,7 @@ class List(logcommand.LogCommand):
             return
 
         try:
-            import cdio
+            import cdio as _
         except ImportError:
             self.stdout.write(
                 'Install pycdio for vendor/model/release detection.\n')

-- 
morituri packaging



More information about the pkg-multimedia-commits mailing list