Revert "Convert docstrings to reStructuredText"
This reverts commit 3b1bd242d0.
This commit is contained in:
@@ -49,9 +49,9 @@ class TestCase(unittest.TestCase):
|
||||
def failUnlessRaises(self, exception, f, *args, **kwargs):
|
||||
try:
|
||||
result = f(*args, **kwargs)
|
||||
except exception as inst:
|
||||
except exception, inst:
|
||||
return inst
|
||||
except exception as e:
|
||||
except exception, e:
|
||||
raise Exception('%s raised instead of %s:\n %s' %
|
||||
(sys.exec_info()[0], exception.__name__, str(e))
|
||||
)
|
||||
@@ -63,14 +63,9 @@ class TestCase(unittest.TestCase):
|
||||
assertRaises = failUnlessRaises
|
||||
|
||||
def readCue(self, name):
|
||||
"""Read a cue file and replace its version number with the current one.
|
||||
|
||||
The version number is replaced to use the cue file in comparisons.
|
||||
|
||||
:param name: cuesheet filename (without path).
|
||||
:type name: str
|
||||
:returns: the cuesheet with version number replaced.
|
||||
:rtype: str
|
||||
"""
|
||||
Read a .cue file, and replace the version comment with the current
|
||||
version so we can use it in comparisons.
|
||||
"""
|
||||
cuefile = os.path.join(os.path.dirname(__file__), name)
|
||||
ret = open(cuefile).read().decode('utf-8')
|
||||
|
||||
Reference in New Issue
Block a user