Upgrade check_tackinfo.py to Python3

This commit is contained in:
Dennis Luxen 2022-11-04 11:47:40 +01:00
parent 54d486ae12
commit 6fa7bd8abd

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python2
#!/usr/bin/env python3
import json
import sys
@ -7,7 +7,7 @@ import re
WHITELIST = set(["mph"])
if len(sys.argv) < 3:
print "Not enough arguments.\nUsage: " + sys.argv[0] + " taginfo.json profile.lua"
print("Not enough arguments.\nUsage: " + sys.argv[0] + " taginfo.json profile.lua")
sys.exit(1)
taginfo_path = sys.argv[1]