mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-30 07:39:42 +02:00
Make msgfmt.py compatible with py3
This commit is contained in:
parent
5f395ca6e9
commit
5679bb23b3
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__':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user