def raw_seconds_short(string):
 match = re.match('^(\\d+):([0-5]\\d)$', string)
 if (not match):
  raise ValueError(u'String not in M:SS format')
 (minutes, seconds) = map(int, match.groups())
 return float(((minutes * 60) + seconds))

def raw_seconds_short ( string ) : match = re . match ( '^(\\d+):([0-5]\\d)$' , string ) if ( not match ) : raise ValueError ( u'String not in M:SS format' ) ( minutes , seconds ) = map ( int , match . groups ( ) ) return float ( ( ( minutes * 60 ) + seconds ) )
formats a human-readable m:ss string as a float .