From f0a151ee8f1880a416ceac8589b843b2ae4f0557 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Sat, 25 Aug 2007 01:24:18 +0000 Subject: Use rpki.config svn path=/scripts/test-sql.py; revision=910 --- scripts/test-sql.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'scripts/test-sql.py') diff --git a/scripts/test-sql.py b/scripts/test-sql.py index 55484d14..9d13410f 100644 --- a/scripts/test-sql.py +++ b/scripts/test-sql.py @@ -1,13 +1,12 @@ # $Id$ -import MySQLdb, ConfigParser +import MySQLdb, rpki.config def test(filename, section): print "[Checking " + filename + "]\n" - cfg = ConfigParser.RawConfigParser() - cfg.read(filename) + cfg = rpki.config.parser(filename) db = MySQLdb.connect(user = cfg.get(section, "username"), db = cfg.get(section, "database"), @@ -33,5 +32,5 @@ def test(filename, section): print MySQLdb.Timestamp(2007,6,9,9,45,51), MySQLdb.DateFromTicks(1000), \ MySQLdb.Binary("Hi, Mom!"), MySQLdb.STRING, MySQLdb.BINARY, MySQLdb.NUMBER, MySQLdb.NULL, "\n" -test("re.conf", "rpki") +test("re.conf", "rpki") test("irbe.conf", "irdb") -- cgit v1.2.3