##// END OF EJS Templates
check-code: move fixing up regexp into main procedure...
FUJIWARA Katsunori -
r29569:3d52e7c7 default
parent child Browse files
Show More
@@ -474,7 +474,6 b' def _preparepats():'
474 filters = c[3]
474 filters = c[3]
475 for i, flt in enumerate(filters):
475 for i, flt in enumerate(filters):
476 filters[i] = re.compile(flt[0]), flt[1]
476 filters[i] = re.compile(flt[0]), flt[1]
477 _preparepats()
478
477
479 class norepeatlogger(object):
478 class norepeatlogger(object):
480 def __init__(self):
479 def __init__(self):
@@ -644,6 +643,8 b' def main():'
644 else:
643 else:
645 check = args
644 check = args
646
645
646 _preparepats()
647
647 ret = 0
648 ret = 0
648 for f in check:
649 for f in check:
649 if not checkfile(f, maxerr=options.per_file, warnings=options.warnings,
650 if not checkfile(f, maxerr=options.per_file, warnings=options.warnings,
General Comments 0
You need to be logged in to leave comments. Login now