comparison contrib/check-code.py @ 10723:8ea152e94484

check-code: fix check-code complaint
author Matt Mackall <mpm@selenic.com>
date Wed, 17 Mar 2010 15:36:48 -0500
parents c4fb2103e734
children 62b8f15683f2
comparison
equal deleted inserted replaced
10722:c4fb2103e734 10723:8ea152e94484
183 for n, l in z: 183 for n, l in z:
184 if "check-code" + "-ignore" in l[0]: 184 if "check-code" + "-ignore" in l[0]:
185 continue 185 continue
186 for p, msg in pats: 186 for p, msg in pats:
187 if re.search(p, l[1]): 187 if re.search(p, l[1]):
188 logfunc(f, n+1, l[0], msg) 188 logfunc(f, n + 1, l[0], msg)
189 fc += 1 189 fc += 1
190 result = False 190 result = False
191 if maxerr is not None and fc >= maxerr: 191 if maxerr is not None and fc >= maxerr:
192 print " (too many errors, giving up)" 192 print " (too many errors, giving up)"
193 break 193 break