Revert "Convert docstrings to reStructuredText"
This reverts commit 3b1bd242d0.
This commit is contained in:
@@ -85,27 +85,18 @@ class Config:
|
||||
# drive sections
|
||||
|
||||
def setReadOffset(self, vendor, model, release, offset):
|
||||
"""Set a read offset for the given drive.
|
||||
"""
|
||||
Set a read offset for the given drive.
|
||||
|
||||
Strips the given strings of leading and trailing whitespace.
|
||||
|
||||
:param vendor:
|
||||
:param model:
|
||||
:param release:
|
||||
:param offset:
|
||||
|
||||
"""
|
||||
section = self._findOrCreateDriveSection(vendor, model, release)
|
||||
self._parser.set(section, 'read_offset', str(offset))
|
||||
self.write()
|
||||
|
||||
def getReadOffset(self, vendor, model, release):
|
||||
"""Get a read offset for the given drive.
|
||||
|
||||
:param vendor:
|
||||
:param model:
|
||||
:param release:
|
||||
|
||||
"""
|
||||
Get a read offset for the given drive.
|
||||
"""
|
||||
section = self._findDriveSection(vendor, model, release)
|
||||
|
||||
@@ -116,15 +107,10 @@ class Config:
|
||||
vendor, model, release))
|
||||
|
||||
def setDefeatsCache(self, vendor, model, release, defeat):
|
||||
"""Set whether the drive defeats the cache.
|
||||
"""
|
||||
Set whether the drive defeats the cache.
|
||||
|
||||
Strips the given strings of leading and trailing whitespace.
|
||||
|
||||
:param vendor:
|
||||
:param model:
|
||||
:param release:
|
||||
:param defeat:
|
||||
|
||||
"""
|
||||
section = self._findOrCreateDriveSection(vendor, model, release)
|
||||
self._parser.set(section, 'defeats_cache', str(defeat))
|
||||
|
||||
Reference in New Issue
Block a user