diff options
author | Rob Austein <sra@hactrn.net> | 2012-04-25 13:53:18 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2012-04-25 13:53:18 +0000 |
commit | 5c03bbdc8dc2a94e92384e0a2cd28cc9dd8e313b (patch) | |
tree | 0bef754a8ced8058adf7f6567541b5e041f76ea5 /scripts/arin-to-csv.py | |
parent | 5164817d379145baef44650e6506be7f80cd1b15 (diff) |
Clean up old scripts which still imported the rpki.myrpki module.
svn path=/trunk/; revision=4454
Diffstat (limited to 'scripts/arin-to-csv.py')
-rw-r--r-- | scripts/arin-to-csv.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/arin-to-csv.py b/scripts/arin-to-csv.py index fc770983..63368723 100644 --- a/scripts/arin-to-csv.py +++ b/scripts/arin-to-csv.py @@ -13,7 +13,7 @@ see: http://www.ibm.com/developerworks/xml/library/x-hiperfparse/ $Id$ -Copyright (C) 2009-2010 Internet Systems Consortium ("ISC") +Copyright (C) 2009-2012 Internet Systems Consortium ("ISC") Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above @@ -28,7 +28,9 @@ OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. """ -import sys, lxml.etree, rpki.myrpki +import sys, lxml.etree + +from rpki.csv_utils import csv_writer def ns(tag): return "{http://www.arin.net/bulkwhois/core/v1}" + tag @@ -84,9 +86,9 @@ def do_net(node): dispatch = { tag_asn : do_asn, tag_net : do_net } -asns = rpki.myrpki.csv_writer("asns.csv") -prefixes = rpki.myrpki.csv_writer("prefixes.csv") -erx = rpki.myrpki.csv_writer("erx.csv") +asns = csv_writer("asns.csv") +prefixes = csv_writer("prefixes.csv") +erx = csv_writer("erx.csv") root = None |