contrib/check-code.py
changeset 14203 b230922eb0c3
parent 14169 1b4b82063ce2
child 14267 6332c02b3d68
--- a/contrib/check-code.py	Thu May 05 20:04:49 2011 +0200
+++ b/contrib/check-code.py	Fri May 06 00:34:10 2011 +0200
@@ -95,12 +95,13 @@
   []
 ]
 
-for p, m in testpats[0] + testpats[1]:
-    if p.startswith('^'):
-        p = uprefix + p[1:]
-    else:
-        p = uprefix + p
-    utestpats.append((p, m))
+for i in [0, 1]:
+    for p, m in testpats[i]:
+        if p.startswith('^'):
+            p = uprefix + p[1:]
+        else:
+            p = uprefix + p
+        utestpats[i].append((p, m))
 
 utestfilters = [
     (r"( *)(#([^\n]*\S)?)", repcomment),