From 3cb147a71ecb4ca1600fc40db1fa367b1cb05bf2 Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Sun, 29 Jul 2012 15:59:08 -0700 Subject: [PATCH] Make tidy skip emacs backup files --- src/etc/tidy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/etc/tidy.py b/src/etc/tidy.py index f042728b4624..b46a6fd83916 100644 --- a/src/etc/tidy.py +++ b/src/etc/tidy.py @@ -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,