- def __init__(self, *args, **kwargs):
- self._db_con = MySQLdb.connect(*args, **kwargs)
- self._db_con_autocommit = MySQLdb.connect(*args, **kwargs)
+ def __init__(self, host="localhost", user="", passwd="", *args, **kwargs):
+ self._db_con = MySQLdb.connect(host=host, user=user, passwd=passwd)
+ self._db_con_autocommit = MySQLdb.connect(host=host, user=user, passwd=passwd)
+ super(Connection, self).__init__(*args, **kwargs)