Skip to content

Commit

Permalink
generate-asinfo.py: get country code from last field
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Lareo committed Feb 15, 2017
1 parent fa8f3c8 commit a715324
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contrib/generate-asinfo.py
Expand Up @@ -9,6 +9,11 @@
except ValueError:
continue

try:
data,country = data.rsplit(',',1)
except:
data = data

if data == '-Private Use AS-':
data = 'Private Use AS'

Expand Down

0 comments on commit a715324

Please sign in to comment.