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/translate-handles.py | |
parent | 5164817d379145baef44650e6506be7f80cd1b15 (diff) |
Clean up old scripts which still imported the rpki.myrpki module.
svn path=/trunk/; revision=4454
Diffstat (limited to 'scripts/translate-handles.py')
-rw-r--r-- | scripts/translate-handles.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/translate-handles.py b/scripts/translate-handles.py index 68695e38..cdff4b77 100644 --- a/scripts/translate-handles.py +++ b/scripts/translate-handles.py @@ -16,7 +16,7 @@ rewrites them as needed after performing the translation. $Id$ -Copyright (C) 2010 Internet Systems Consortium ("ISC") +Copyright (C) 2010-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 @@ -31,15 +31,17 @@ OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. """ -import os, sys, rpki.myrpki +import os +import sys +from rpki.csv_utils import csv_reader, csv_writer -translations = dict((src, dst) for src, dst in rpki.myrpki.csv_reader("translations.csv", columns = 2)) +translations = dict((src, dst) for src, dst in csv_reader("translations.csv", columns = 2)) for filename in sys.argv[1:]: - f = rpki.myrpki.csv_writer(filename) + f = csv_writer(filename) - for cols in rpki.myrpki.csv_reader(filename): + for cols in csv_reader(filename): if cols[0] in translations: cols[0] = translations[cols[0]] f.writerow(cols) |