From dd5a8474f839dff3d600d0ba09351db55f8c6672 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Mon, 26 Nov 2012 18:50:26 -0500 Subject: [PATCH] Have module formatter ignore more types of files. --- hacking/module_formatter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hacking/module_formatter.py b/hacking/module_formatter.py index 6a28be16f87..217d325f170 100755 --- a/hacking/module_formatter.py +++ b/hacking/module_formatter.py @@ -283,7 +283,8 @@ def main(): fname = os.path.join(options.module_dir, module) extra = os.path.join("inc", "%s.tex" % module) - if fname.endswith(".swp"): + # probably could just throw out everything with extensions + if fname.endswith(".swp") or fname.endswith(".orig") or fname.endswith(".rej"): continue print " processing module source ---> %s" % fname