Don't pointlessly traverse files that are already done.

This commit is contained in:
yenatch 2016-01-28 23:20:29 -05:00
parent 0b156e7bd6
commit 9644160b87

View File

@ -27,7 +27,7 @@ def main():
ap = argparse.ArgumentParser()
ap.add_argument('filenames', nargs='*')
args = ap.parse_args()
for filename in args.filenames:
for filename in set(args.filenames):
scan_file(filename)
sys.stdout.write(' '.join(includes))