Mercurial > hg
changeset 19309:7d77fa1cd537
check-code: compile filters when loading
author | Simon Heimberg <simohe@besonet.ch> |
---|---|
date | Sat, 08 Jun 2013 20:20:14 +0200 |
parents | 84faaacbd3fa |
children | 30ea54660d14 |
files | contrib/check-code.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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):