equal
deleted
inserted
replaced
644 regexp = r'%s(?:%s)%s' % ( |
644 regexp = r'%s(?:%s)%s' % ( |
645 head, |
645 head, |
646 '|'.join([fnmatch.translate(os.path.normpath(os.path.normcase(p)))[:-1] |
646 '|'.join([fnmatch.translate(os.path.normpath(os.path.normcase(p)))[:-1] |
647 for p in pats]), |
647 for p in pats]), |
648 tail) |
648 tail) |
649 print regexp |
|
650 return re.compile(regexp) |
649 return re.compile(regexp) |
651 exclude = compile(opts['exclude'], on_empty = False) |
650 exclude = compile(opts['exclude'], on_empty = False) |
652 include = compile(opts['include']) |
651 include = compile(opts['include']) |
653 pat = compile([os.path.normcase(p) for p in pats], head = '', tail = '$') |
652 pat = compile([os.path.normcase(p) for p in pats], head = '', tail = '$') |
654 end = '\n' |
653 end = '\n' |