def FindCheckMacro(line):
 for macro in _CHECK_MACROS:
  i = line.find(macro)
  if (i >= 0):
   matched = Match((('^(.*\\b' + macro) + '\\s*)\\('), line)
   if (not matched):
    continue
   return (macro, len(matched.group(1)))
 return (None, (-1))

def FindCheckMacro ( line ) : for macro in _CHECK_MACROS : i = line . find ( macro ) if ( i >= 0 ) : matched = Match ( ( ( '^(.*\\b' + macro ) + '\\s*)\\(' ) , line ) if ( not matched ) : continue return ( macro , len ( matched . group ( 1 ) ) ) return ( None , ( - 1 ) )
find a replaceable check-like macro .