mirror of
https://github.com/manuelkasper/AS-Stats.git
synced 2025-02-20 11:44:12 +08:00
Merge pull request #92 from alarig/master
contrib/generate-asinfo.py: Correcting syntax errors
This commit is contained in:
commit
4b90a1fa78
@ -11,6 +11,7 @@ for line in sys.stdin:
|
||||
|
||||
try:
|
||||
data,country = data.rsplit(',',1)
|
||||
country = country.strip()
|
||||
except:
|
||||
data = data
|
||||
|
||||
@ -30,4 +31,4 @@ for line in sys.stdin:
|
||||
if name.startswith('- '):
|
||||
name = name[2:]
|
||||
|
||||
print "%s\t%s\t%s\t%s" % (asn,macro,name,country)
|
||||
print("%s\t%s\t%s,%s\t%s" % (asn,macro,name,country,country))
|
||||
|
Loading…
x
Reference in New Issue
Block a user