Mercurial > p > roundup > code
comparison roundup/msgfmt.py @ 7789:37a98ec62e2e
chore: remove extra whitespace
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Wed, 06 Mar 2024 13:13:31 -0500 |
| parents | a9bac0cb4019 |
| children | a363bb8c0ed4 |
comparison
equal
deleted
inserted
replaced
| 7788:a9bac0cb4019 | 7789:37a98ec62e2e |
|---|---|
| 286 | 286 |
| 287 if __name__ == '__main__': | 287 if __name__ == '__main__': |
| 288 # a really dumb attempt to make this into a command | 288 # a really dumb attempt to make this into a command |
| 289 # Usage: python msgfmy.py <input_file>.po <output_file>.mo | 289 # Usage: python msgfmy.py <input_file>.po <output_file>.mo |
| 290 import sys | 290 import sys |
| 291 | 291 |
| 292 mo = Msgfmt(sys.argv[1]).get() | 292 mo = Msgfmt(sys.argv[1]).get() |
| 293 with open(sys.argv[2], 'wb') as mofile: | 293 with open(sys.argv[2], 'wb') as mofile: |
| 294 mofile.write(mo) | 294 mofile.write(mo) |
| 295 mofile.close() | 295 mofile.close() |
| 296 | 296 |
