practracker: Don't read editor temp files

(Or any dot files.)

Obviously correct changes to already-reviewed code.
This commit is contained in:
teor 2019-10-28 13:09:58 +10:00
parent 68befa3b84
commit 18e09913bf
No known key found for this signature in database
GPG Key ID: 10FEAA0E7075672A

View File

@ -33,6 +33,9 @@ def get_tor_c_files(tor_topdir, include_dirs=None):
# We only care about .c and .h files # We only care about .c and .h files
if not (filename.endswith(".c") or filename.endswith(".h")): if not (filename.endswith(".c") or filename.endswith(".h")):
continue continue
# Avoid editor temporary files
if filename.startswith("."):
continue
if filename in EXCLUDE_FILES: if filename in EXCLUDE_FILES:
continue continue