1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-13 08:05:52 +01:00

Make msgfmt.py compatible with py3

This commit is contained in:
Leland Lucius
2020-05-26 15:03:21 -05:00
parent 5f395ca6e9
commit 5679bb23b3

2
locale/msgfmt.py Normal file → Executable file
View File

@@ -297,7 +297,7 @@ def main():
print('No output file given', file=sys.stderr) print('No output file given', file=sys.stderr)
sys.exit(1) sys.exit(1)
with open(opts[0][1], "w") as mo: with open(opts[0][1], "wb") as mo:
mo.write(Msgfmt(args[0]).get()) mo.write(Msgfmt(args[0]).get())
if __name__ == '__main__': if __name__ == '__main__':