Address bug #13095 by having wmllint throw a warning...

...on filenames ending in tilde.
This commit is contained in:
Eric S. Raymond 2009-03-30 01:36:22 +00:00
parent c198e81f25
commit 2a84210a82

View file

@ -1931,6 +1931,9 @@ if __name__ == '__main__':
backup, fn, fromdate, todate, n=3)
sys.stdout.writelines(diff)
else:
if fn.endswith("~"):
print "wmllint: ignoring %s, the campaign server won't accept it." % fn
continue
# Do file conversions
try:
changed = translator(fn, [], texttransform)