def parse_patterns(patterns_spec, ignore_patterns_spec, separator=';'):
 patterns = patterns_spec.split(separator)
 ignore_patterns = ignore_patterns_spec.split(separator)
 if (ignore_patterns == ['']):
  ignore_patterns = []
 return (patterns, ignore_patterns)

def parse_patterns ( patterns_spec , ignore_patterns_spec , separator = ';' ) : patterns = patterns_spec . split ( separator ) ignore_patterns = ignore_patterns_spec . split ( separator ) if ( ignore_patterns == [ '' ] ) : ignore_patterns = [ ] return ( patterns , ignore_patterns )
parses pattern argument specs and returns a two-tuple of .