contrib/check-code.py
changeset 14203 b230922eb0c3
parent 14169 1b4b82063ce2
child 14267 6332c02b3d68
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