comparison contrib/check-code.py @ 14203:b230922eb0c3

check-code: fix checking for sh style in .t tests Restore checks after they were disabled by 64de9ca66511.
author Mads Kiilerich <mads@kiilerich.com>
date Fri, 06 May 2011 00:34:10 +0200
parents 1b4b82063ce2
children 6332c02b3d68
comparison
equal deleted inserted replaced
14202:b68a41420397 14203:b230922eb0c3
93 ], 93 ],
94 # warnings 94 # warnings
95 [] 95 []
96 ] 96 ]
97 97
98 for p, m in testpats[0] + testpats[1]: 98 for i in [0, 1]:
99 if p.startswith('^'): 99 for p, m in testpats[i]:
100 p = uprefix + p[1:] 100 if p.startswith('^'):
101 else: 101 p = uprefix + p[1:]
102 p = uprefix + p 102 else:
103 utestpats.append((p, m)) 103 p = uprefix + p
104 utestpats[i].append((p, m))
104 105
105 utestfilters = [ 106 utestfilters = [
106 (r"( *)(#([^\n]*\S)?)", repcomment), 107 (r"( *)(#([^\n]*\S)?)", repcomment),
107 ] 108 ]
108 109