From 4d4367359734d8694308cea66995ad3448c0f96b Mon Sep 17 00:00:00 2001 From: Fred Date: Sat, 28 Jul 2012 23:45:41 +0800 Subject: [PATCH] Prettyfied dict --- lib/db.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/db.py b/lib/db.py index 30151c0..7ff9b4b 100644 --- a/lib/db.py +++ b/lib/db.py @@ -16,22 +16,22 @@ class DB(): if engine == 'mysqli': import pymysql self.conn = pymysql.connect( - host=options['host'], - port=int(options['port']), - user=options['user'], - passwd=options['passwd'], - db=None + host = options['host'], + port = int(options['port']), + user = options['user'], + passwd = options['passwd'], + db = None ) self.cur = self.conn.cursor() elif engine == 'pgsql': from bpgsql import bpgsql self.conn = bpgsql.connect( - host=str(options['host']), - port=str(options['port']), - username=str(options['user']), - password=str(options['passwd']), - dbname='' + host = str(options['host']), + port = str(options['port']), + username = str(options['user']), + password = str(options['passwd']), + dbname = '' ) self.cur = self.conn.cursor() -- 2.11.0