Prettyfied dict
authorFred <fmcell@gmail.com>
Sat, 28 Jul 2012 15:45:41 +0000 (23:45 +0800)
committerFred <fmcell@gmail.com>
Sat, 28 Jul 2012 15:45:41 +0000 (23:45 +0800)
lib/db.py

index 30151c0..7ff9b4b 100644 (file)
--- 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()