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:
2
locale/msgfmt.py
Normal file → Executable file
2
locale/msgfmt.py
Normal file → Executable 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__':
|
||||||
|
|||||||
Reference in New Issue
Block a user