From fb8b3000cf8860a5ca3a49927c805f9912ce9b3b Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Thu, 21 Mar 2024 06:35:37 +0100 Subject: [PATCH] fix: [main] make it functional under Python 3 --- nato_converter.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nato_converter.py b/nato_converter.py index 07a4b88..13d7be0 100755 --- a/nato_converter.py +++ b/nato_converter.py @@ -3,7 +3,6 @@ import sys - table = { "a": "alpha", "b": "bravo", @@ -84,8 +83,8 @@ if __name__ == '__main__': orig = orig.replace("\n", " ") result = convert(orig) - print "%s: %s" % (orig, result) + print(f'{orig}:{result}') else: - print "usage" + print("usage") # vim: set ts=4 sw=4 expandtab: