Skip to content

Commit 3cb147a

Browse files
committed
Make tidy skip emacs backup files
1 parent 181f671 commit 3cb147a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/etc/tidy.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ def report_err(s):
1818
print("%s:%d: %s" % (fileinput.filename(), fileinput.filelineno(), s))
1919
err=1
2020

21-
file_names = [s for s in sys.argv[1:] if not s.endswith("_gen.rs")]
21+
file_names = [s for s in sys.argv[1:] if (not s.endswith("_gen.rs"))
22+
and (not s.startswith(".#"))]
2223

2324
try:
2425
for line in fileinput.input(file_names,

0 commit comments

Comments
 (0)