Revert "Convert docstrings to reStructuredText"

This reverts commit 3b1bd242d0.
This commit is contained in:
Samantha Baldwin
2018-03-01 21:54:43 -05:00
parent f8fbfb591c
commit 09de58852e
32 changed files with 723 additions and 1064 deletions

View File

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