diff --git a/contrib/generate-asinfo.py b/contrib/generate-asinfo.py index 4da11af..5948f11 100755 --- a/contrib/generate-asinfo.py +++ b/contrib/generate-asinfo.py @@ -27,7 +27,7 @@ for line in sys.stdin: macro = 'UNSPECIFIED' name = data - if name.startswith('- '): + if name.startswith('- '): name = name[2:] - print "%s\t%s\t%s\t%s" % (asn,macro,name,country) + print("%s\t%s\t%s\t%s" % (asn,macro,name,country))