Bug fix for mask conversion logic.

This commit is contained in:
Eric S. Raymond 2007-10-17 14:03:50 +00:00
parent 6f9acce18d
commit 55908f04b0

View file

@ -1129,8 +1129,10 @@ def translator(filename, mapxforms, textxform):
if add_usage:
newdata.append("usage=" + maptype + terminator)
have_header = True
modified = True
if have_header:
newdata.append(terminator)
modified = True
for y in range(len(outmap)):
newdata.append(",".join(outmap[y]) + terminator)
if not modified and original[y] != outmap[y]: