Fixed a bug in PR #431 which broke wmlindent

This commit is contained in:
Elvish_Hunter 2015-07-28 22:31:11 +02:00
parent 1aede33867
commit 07b5b4e3f3

View file

@ -252,7 +252,7 @@ def convertor(linefilter, arglist, exclude):
continue
else:
try:
with open(filename,"rb") as infp, open(filename, "rb") as outfp:
with open(filename,"rb") as infp, open(filename + ".out", "wb") as outfp:
linefilter(filename, infp, outfp)
except bailout as e:
sys.stderr.write('wmlindent: "%s", %d: %s\n' % (e.filename, e.lineno, e.msg))