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')