equal
deleted
inserted
replaced
408 name, match, f) |
408 name, match, f) |
409 continue |
409 continue |
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: |
419 post = re.sub(p, r, post) |
419 post = re.sub(p, r, post) |
420 if warnings: |
420 if warnings: |
449 break |
449 break |
450 pos += step |
450 pos += step |
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): |
460 continue |
460 continue |
461 bd = "" |
461 bd = "" |