def should_rx_exclude_path(path, exclude_rxs):
 for rx in exclude_rxs:
  if rx.search(path):
   debug1(('Skipping %r: excluded by rx pattern %r.\n' % (path, rx.pattern)))
   return True
 return False

def should_rx_exclude_path ( path , exclude_rxs ) : for rx in exclude_rxs : if rx . search ( path ) : debug1 ( ( 'Skipping %r: excluded by rx pattern %r.\n' % ( path , rx . pattern ) ) ) return True return False
return true if path matches a regular expression in exclude_rxs .