equal
deleted
inserted
replaced
489 """ |
489 """ |
490 blamecache = None |
490 blamecache = None |
491 result = True |
491 result = True |
492 |
492 |
493 try: |
493 try: |
494 fp = open(f) |
494 with open(f) as fp: |
|
495 pre = post = fp.read() |
495 except IOError as e: |
496 except IOError as e: |
496 print("Skipping %s, %s" % (f, str(e).split(':', 1)[0])) |
497 print("Skipping %s, %s" % (f, str(e).split(':', 1)[0])) |
497 return result |
498 return result |
498 pre = post = fp.read() |
|
499 fp.close() |
|
500 |
499 |
501 for name, match, magic, filters, pats in checks: |
500 for name, match, magic, filters, pats in checks: |
502 if debug: |
501 if debug: |
503 print(name, f) |
502 print(name, f) |
504 fc = 0 |
503 fc = 0 |