check-code: compile filters when loading
authorSimon Heimberg <simohe@besonet.ch>
Sat, 08 Jun 2013 20:20:14 +0200
changeset 19309 7d77fa1cd537
parent 19308 84faaacbd3fa
child 19310 30ea54660d14
check-code: compile filters when loading
contrib/check-code.py
--- a/contrib/check-code.py	Sat Jun 08 20:20:14 2013 +0200
+++ b/contrib/check-code.py	Sat Jun 08 20:20:14 2013 +0200
@@ -331,6 +331,9 @@
 
                 #print po, '=>', p
                 pats[i] = (re.compile(p, re.MULTILINE),) + pseq[1:]
+        filters = c[2]
+        for i, flt in enumerate(filters):
+            filters[i] = re.compile(flt[0]), flt[1]
 _preparepats()
 
 class norepeatlogger(object):