Merge pull request #6441 from Project-OSRM/python2_deprecation

This commit is contained in:
Dennis Luxen 2022-11-06 08:21:16 +01:00 committed by GitHub
commit fc12b6c365
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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]