]> git.jsancho.org Git - mojodb.git/commitdiff
Default values for user and password in MySQL connections must be empty
authorJavier Sancho <jsf@jsancho.org>
Thu, 13 Mar 2014 15:31:53 +0000 (16:31 +0100)
committerJavier Sancho <jsf@jsancho.org>
Thu, 13 Mar 2014 15:31:53 +0000 (16:31 +0100)
strings, not None

MySQL.py

index 98365b4d50d22629584ae39db071cd33cf8e7ae2..ba00c333349485a6fd7d2549826d1e7cc5654734 100644 (file)
--- 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)