diff options
author | yenatch <yenatch@gmail.com> | 2016-01-28 23:20:29 -0500 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2016-01-28 23:20:29 -0500 |
commit | 9644160b87e706f3a6ae20fe09e9c469f628c06d (patch) | |
tree | abb238d461ac738867ab883f3087c796901bce91 | |
parent | 0b156e7bd6b06abe40b2ba9c07e53dc11b815a6a (diff) |
Don't pointlessly traverse files that are already done.
-rw-r--r-- | pokemontools/scan_includes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pokemontools/scan_includes.py b/pokemontools/scan_includes.py index 75fd316..60929d3 100644 --- a/pokemontools/scan_includes.py +++ b/pokemontools/scan_includes.py @@ -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)) |