##// END OF EJS Templates
check-code: concatenate "check-code" on compile time...
Simon Heimberg -
r19382:5aeb03b4 default
parent child Browse files
Show More
@@ -410,9 +410,9 def checkfile(f, logfunc=_defaultlogger.
410 fp = open(f)
410 fp = open(f)
411 pre = post = fp.read()
411 pre = post = fp.read()
412 fp.close()
412 fp.close()
413 if "no-" + "check-code" in pre:
413 if "no-" "check-code" in pre:
414 if debug:
414 if debug:
415 print "Skipping %s for %s it has no- and check-code" % (
415 print "Skipping %s for %s it has no-" " check-code" % (
416 name, f)
416 name, f)
417 break
417 break
418 for p, r in filters:
418 for p, r in filters:
@@ -451,9 +451,9 def checkfile(f, logfunc=_defaultlogger.
451 n += 1
451 n += 1
452 l = prelines[n]
452 l = prelines[n]
453
453
454 if "check-code" + "-ignore" in l:
454 if "check-code" "-ignore" in l:
455 if debug:
455 if debug:
456 print "Skipping %s for %s:%s (check-code -ignore)" % (
456 print "Skipping %s for %s:%s (check-code" "-ignore)" % (
457 name, f, n)
457 name, f, n)
458 continue
458 continue
459 elif ignore and re.search(ignore, l, re.MULTILINE):
459 elif ignore and re.search(ignore, l, re.MULTILINE):
General Comments 0
You need to be logged in to leave comments. Login now