Make tidy skip emacs backup files
This commit is contained in:
parent
181f671b4d
commit
3cb147a71e
1 changed files with 2 additions and 1 deletions
|
@ -18,7 +18,8 @@ def report_err(s):
|
|||
print("%s:%d: %s" % (fileinput.filename(), fileinput.filelineno(), s))
|
||||
err=1
|
||||
|
||||
file_names = [s for s in sys.argv[1:] if not s.endswith("_gen.rs")]
|
||||
file_names = [s for s in sys.argv[1:] if (not s.endswith("_gen.rs"))
|
||||
and (not s.startswith(".#"))]
|
||||
|
||||
try:
|
||||
for line in fileinput.input(file_names,
|
||||
|
|
Loading…
Reference in a new issue