[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] practracker: Don't read editor temp files



commit 18e09913bf23253645404612726983c5c43e19cc
Author: teor <teor@xxxxxxxxxxxxxx>
Date:   Mon Oct 28 13:09:58 2019 +1000

    practracker: Don't read editor temp files
    
    (Or any dot files.)
    
    Obviously correct changes to already-reviewed code.
---
 scripts/maint/practracker/util.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/maint/practracker/util.py b/scripts/maint/practracker/util.py
index df629110c..c38e4c8dd 100644
--- a/scripts/maint/practracker/util.py
+++ b/scripts/maint/practracker/util.py
@@ -33,6 +33,9 @@ def get_tor_c_files(tor_topdir, include_dirs=None):
                 # We only care about .c and .h files
                 if not (filename.endswith(".c") or filename.endswith(".h")):
                     continue
+                # Avoid editor temporary files
+                if filename.startswith("."):
+                    continue
                 if filename in EXCLUDE_FILES:
                     continue
 

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits