def _FileMatches(path, excl_regexps):
 for r in excl_regexps:
  if re.match(r, path):
   return False
 return True

def _FileMatches ( path , excl_regexps ) : for r in excl_regexps : if re . match ( r , path ) : return False return True
returns true if the specified path matches none of the specified exclude regular expresions .