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/ripe-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/ripe-to-csv.py')
-rw-r--r-- | scripts/ripe-to-csv.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/ripe-to-csv.py b/scripts/ripe-to-csv.py index a9077640..ff069732 100644 --- a/scripts/ripe-to-csv.py +++ b/scripts/ripe-to-csv.py @@ -21,7 +21,7 @@ the terms and conditions referenced by the data file header comments. $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 @@ -36,7 +36,8 @@ OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. """ -import gzip, csv, rpki.myrpki +import gzip +from rpki.csv_utils import csv_writer class Handle(dict): @@ -116,8 +117,8 @@ class main(object): filenames = ("ripe.db.aut-num.gz", "ripe.db.inet6num.gz", "ripe.db.inetnum.gz") def __init__(self): - self.asns = rpki.myrpki.csv_writer("asns.csv") - self.prefixes = rpki.myrpki.csv_writer("prefixes.csv") + self.asns = csv_writer("asns.csv") + self.prefixes = csv_writer("prefixes.csv") for fn in self.filenames: f = gzip.open(fn) self.statement = "" |