diff options
author | teor <teor@torproject.org> | 2020-04-03 19:11:08 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2020-04-03 19:16:57 +1000 |
commit | a762234ba27d89f3394e560c2b0cf976648ca779 (patch) | |
tree | 772738343ded1192cf2c162d56268b1a147410c7 /scripts/maint/rectify_include_paths.py | |
parent | 442e0caea2910b43616560e8d95cd4138c377257 (diff) | |
download | tor-a762234ba27d89f3394e560c2b0cf976648ca779.tar.gz tor-a762234ba27d89f3394e560c2b0cf976648ca779.zip |
scripts: Ignore editor temporary files
Ignore editor temporary files when autostyling in:
* rectify_include_paths.py
* rename_c_identifier.py
Obviously correct changes to already-reviewed code.
Diffstat (limited to 'scripts/maint/rectify_include_paths.py')
-rwxr-xr-x | scripts/maint/rectify_include_paths.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/maint/rectify_include_paths.py b/scripts/maint/rectify_include_paths.py index c6c5026711..6c7b252535 100755 --- a/scripts/maint/rectify_include_paths.py +++ b/scripts/maint/rectify_include_paths.py @@ -29,6 +29,12 @@ def get_include_map(): exclude(["ext", "win32"], dirnames) for fname in fnames: + # Avoid editor temporary files + if fname.startswith("."): + continue + if fname.startswith("#"): + continue + if fname.endswith(".h"): if fname in includes: warn("Multiple headers named %s"%fname) @@ -63,6 +69,12 @@ for dirpath,dirnames,fnames in os.walk("src"): exclude(["trunnel"], dirnames) for fname in fnames: + # Avoid editor temporary files + if fname.startswith("."): + continue + if fname.startswith("#"): + continue + if fname.endswith(".c") or fname.endswith(".h"): fname = os.path.join(dirpath, fname) tmpfile = fname+".tmp" |