From 50430eeab5d7e3c1fbb3a130f2d26dc28d5f45da Mon Sep 17 00:00:00 2001 From: Javier Sancho Date: Thu, 13 Mar 2014 16:31:53 +0100 Subject: [PATCH] Default values for user and password in MySQL connections must be empty strings, not None --- MySQL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MySQL.py b/MySQL.py index 98365b4..ba00c33 100644 --- a/MySQL.py +++ b/MySQL.py @@ -84,7 +84,7 @@ class Connection(connection.Connection): Constraint = Constraint Literal = Literal - def __init__(self, host="localhost", user=None, passwd=None, *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) -- 2.39.2