def getSplitLineBeforeBracketSemicolon(line):
 bracketSemicolonIndex = min(line.find(';'), line.find('('))
 if (bracketSemicolonIndex < 0):
  return line.split()
 return line[:bracketSemicolonIndex].split()

def getSplitLineBeforeBracketSemicolon ( line ) : bracketSemicolonIndex = min ( line . find ( ';' ) , line . find ( '(' ) ) if ( bracketSemicolonIndex < 0 ) : return line . split ( ) return line [ : bracketSemicolonIndex ] . split ( )
get the split line before a bracket or semicolon .