pep8 fixes

This commit is contained in:
Thomas Vander Stichele
2012-12-02 16:40:46 +00:00
parent c634dd0e92
commit b86febb3b1
6 changed files with 4 additions and 7 deletions

View File

@@ -65,7 +65,6 @@ class Config(log.Loggable):
self.info('Loaded %d sections from config file' %
len(self._parser.sections()))
def setReadOffset(self, vendor, model, release, offset):
"""
Set a read offset for the given drive.
@@ -75,7 +74,8 @@ class Config(log.Loggable):
try:
section = self._findDriveSection(vendor, model, release)
except KeyError:
section = 'drive:' + urllib.quote('%s:%s:%s' % (vendor, model, release))
section = 'drive:' + urllib.quote('%s:%s:%s' % (
vendor, model, release))
self._parser.add_section(section)
__pychecker__ = 'no-local'
read_offset = str(offset)

View File

@@ -59,6 +59,7 @@ def _getAllDevicePathsStatic():
return ret
def getDeviceInfo(path):
try:
import cdio
@@ -69,4 +70,3 @@ def getDeviceInfo(path):
ok, vendor, model, release = device.get_hwinfo()
return (vendor, model, release)

View File

@@ -65,7 +65,6 @@ class Program(log.Loggable):
'table')
return path
def loadDevice(self, device):
"""
Load the given device.