fix: [main] make it functional under Python 3

This commit is contained in:
Alexandre Dulaunoy 2024-03-21 06:35:37 +01:00
parent 8faed36cc7
commit fb8b3000cf
Signed by: adulau
GPG key ID: 09E2CD4944E6CBCD

View file

@ -3,7 +3,6 @@
import sys import sys
table = { table = {
"a": "alpha", "a": "alpha",
"b": "bravo", "b": "bravo",
@ -84,8 +83,8 @@ if __name__ == '__main__':
orig = orig.replace("\n", " ") orig = orig.replace("\n", " ")
result = convert(orig) result = convert(orig)
print "%s: %s" % (orig, result) print(f'{orig}:{result}')
else: else:
print "usage" print("usage")
# vim: set ts=4 sw=4 expandtab: # vim: set ts=4 sw=4 expandtab: