diff options
Diffstat (limited to 'scripts/ripe-asns-to-csv.py')
-rw-r--r-- | scripts/ripe-asns-to-csv.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/ripe-asns-to-csv.py b/scripts/ripe-asns-to-csv.py index 122ed1fe..78e6f11d 100644 --- a/scripts/ripe-asns-to-csv.py +++ b/scripts/ripe-asns-to-csv.py @@ -8,7 +8,7 @@ the terms and conditions referenced by the data file header comments. $Id$ -Copyright (C) 2009 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 @@ -23,7 +23,8 @@ OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. """ -import gzip, rpki.myrpki +import gzip +from rpki.csv_utils import csv_writer class Handle(dict): @@ -88,7 +89,7 @@ class main(object): filenames = ("ripe.db.aut-num.gz",) def __init__(self): - self.asns = rpki.myrpki.csv_writer("asns.csv") + self.asns = csv_writer("asns.csv") for fn in self.filenames: f = gzip.open(fn) self.statement = "" |