contrib/check-code.py
changeset 19382 5aeb03b48ab4
parent 19380 ee07f9d142c9
child 19422 d9e86d656017
--- a/contrib/check-code.py	Mon Jul 01 06:50:58 2013 +0200
+++ b/contrib/check-code.py	Mon Jul 01 06:50:58 2013 +0200
@@ -410,9 +410,9 @@
         fp = open(f)
         pre = post = fp.read()
         fp.close()
-        if "no-" + "check-code" in pre:
+        if "no-" "check-code" in pre:
             if debug:
-                print "Skipping %s for %s it has no- and check-code" % (
+                print "Skipping %s for %s it has no-" " check-code" % (
                        name, f)
             break
         for p, r in filters:
@@ -451,9 +451,9 @@
                     n += 1
                 l = prelines[n]
 
-                if "check-code" + "-ignore" in l:
+                if "check-code" "-ignore" in l:
                     if debug:
-                        print "Skipping %s for %s:%s (check-code -ignore)" % (
+                        print "Skipping %s for %s:%s (check-code" "-ignore)" % (
                             name, f, n)
                     continue
                 elif ignore and re.search(ignore, l, re.MULTILINE):