diff options
author | Rob Austein <sra@hactrn.net> | 2010-03-31 16:01:53 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2010-03-31 16:01:53 +0000 |
commit | d3e80f631b239360f4277c3f42b6ad4656ccb660 (patch) | |
tree | 96e8147d852f846f34e8cd2cdf177dafd0f0830a /myrpki.rototill/ripe-asns-to-csv.py | |
parent | 0b56214cd784b6a7a5703aca725c0c4fdb2ebf75 (diff) |
Clean up CSV code per suggestions from Warren
svn path=/myrpki.rototill/apnic-to-csv.py; revision=3147
Diffstat (limited to 'myrpki.rototill/ripe-asns-to-csv.py')
-rw-r--r-- | myrpki.rototill/ripe-asns-to-csv.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/myrpki.rototill/ripe-asns-to-csv.py b/myrpki.rototill/ripe-asns-to-csv.py index 01c0f82a..04a92627 100644 --- a/myrpki.rototill/ripe-asns-to-csv.py +++ b/myrpki.rototill/ripe-asns-to-csv.py @@ -70,9 +70,6 @@ class main(object): types = dict((x.want_tags[0], x) for x in (aut_num,)) - @staticmethod - def csvout(fn): - return csv.writer(open(fn, "w"), dialect = myrpki.csv_dialect) def finish_statement(self, done): if self.statement: @@ -91,7 +88,7 @@ class main(object): filenames = ("ripe.db.aut-num.gz",) def __init__(self): - self.asns = self.csvout("asns.csv") + self.asns = myrpki.csv_writer("asns.csv") for fn in self.filenames: f = gzip.open(fn) self.statement = "" |