diff -r 7b82dc1fb6f5 -r 515fadd3d286 pgtoolkit/toolbase.py --- a/pgtoolkit/toolbase.py Wed Apr 10 11:22:15 2013 +0200 +++ b/pgtoolkit/toolbase.py Sat Apr 13 15:22:05 2013 +0200 @@ -2,9 +2,11 @@ import logging import re -from pgtoolkit import pgmanager, pgbrowser, configparser -from pgtoolkit.coloredformatter import ColoredFormatter -from pgtoolkit.highlight import highlight +from pycolib.configparser import ConfigParser +from pycolib.coloredformatter import ColoredFormatter +from pycolib.ansicolor import highlight + +from pgtoolkit import pgmanager, pgbrowser class ConnectionInfoNotFound(Exception): @@ -21,10 +23,10 @@ self.parser.add_argument('-d', dest='debug', action='store_true', help='Debug mode - print database queries.') - self.config = configparser.ConfigParser() - self.config.add_argument('databases', type=dict) - self.config.add_argument('meta_db') - self.config.add_argument('meta_query') + self.config = ConfigParser() + self.config.add_option('databases', type=dict) + self.config.add_option('meta_db') + self.config.add_option('meta_query') self.pgm = pgmanager.get_instance() self.target_isolation_level = None