From 312f46d6ca4374cc7f0355320a6cc9c33dde5613 Mon Sep 17 00:00:00 2001 From: INADA Naoki Date: Fri, 18 Apr 2014 12:17:34 +0900 Subject: [PATCH] use_unicode=True by default on Python 3. --- MySQLdb/connections.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MySQLdb/connections.py b/MySQLdb/connections.py index 766a0a2..3c7a977 100644 --- a/MySQLdb/connections.py +++ b/MySQLdb/connections.py @@ -178,7 +178,7 @@ class Connection(_mysql.connection): cursorclass = kwargs2.pop('cursorclass', self.default_cursor) charset = kwargs2.pop('charset', '') - if charset: + if charset or not PY2: use_unicode = True else: use_unicode = False