pychecker and docstring fixes

This commit is contained in:
Thomas Vander Stichele
2009-05-23 07:49:48 +00:00
parent 80475df042
commit 5f63551816
3 changed files with 17 additions and 5 deletions

View File

@@ -31,13 +31,13 @@ FRAMES_PER_SECOND = 75
def msfToFrames(msf):
"""
Converts a string value in MM:SS:FF to frames
Converts a string value in MM:SS:FF to frames.
@param msf:
@param msf: the MM:SS:FF value to convert
@type msf: str
@rtype int
@returns number of frames
@rtype: int
@returns: number of frames
"""
if not ':' in msf:
return int(msf)

View File

@@ -92,9 +92,13 @@ class TocFile(object, log.Loggable):
self.table = table.Table()
def parse(self):
state = 'HEADER'
# these two objects start as None then get set as real objects,
# so no need to complain about them here
__pychecker__ = 'no-objattrs'
currentFile = None
currentTrack = None
state = 'HEADER'
counter = 0
trackNumber = 0
indexNumber = 0