Author: esr
Date: Sun Dec 7 23:59:39 2008
New Revision: 31359
URL: http://svn.gna.org/viewcvs/wesnoth?rev=31359&view=rev
Log:
Make wmllint and wmlscope ignore Emacs tempfiles.
Modified:
trunk/data/tools/wesnoth/wmltools.py
Modified: trunk/data/tools/wesnoth/wmltools.py
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wesnoth/wmltools.py?rev=31359&r1=31358&r2=31359&view=diff
==============================================================================
--- trunk/data/tools/wesnoth/wmltools.py (original)
+++ trunk/data/tools/wesnoth/wmltools.py Sun Dec 7 23:59:39 2008
@@ -84,7 +84,8 @@
subtree.sort(lambda x, y: cmp(x, y) -
2*int(x.endswith("_main.cfg")) + 2*int(y.endswith("_main.cfg")))
self.forest.append(subtree)
for i in range(len(self.forest)):
- self.forest[i] = filter(lambda x: ".svn" not in x and ".git" not
in x, self.forest[i])
+ # Ignore versiuon-control subdirectories and Emacs tempfiles
+ self.forest[i] = filter(lambda x: ".svn" not in x and ".git" not
in x and '.#' not in x, self.forest[i])
self.forest[i] = filter(lambda x: not os.path.isdir(x),
self.forest[i])
if exclude:
self.forest[i] = filter(lambda x: not re.search(exclude, x),
self.forest[i])
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits