From 470eb56c4ddb742c70d9e11c4f6601ccf4071fe5 Mon Sep 17 00:00:00 2001 From: INADA Naoki Date: Tue, 21 May 2013 13:32:23 +0900 Subject: Fix typo. --- MySQLdb/connections.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MySQLdb') diff --git a/MySQLdb/connections.py b/MySQLdb/connections.py index 2b423e7..908d72a 100644 --- a/MySQLdb/connections.py +++ b/MySQLdb/connections.py @@ -233,7 +233,7 @@ class Connection(_mysql.connection): # PEP-249 requires autocommit to be initially off autocommit = kwargs2.pop('autocommit', False) if autocommit is not None: - self.autocommit(bool(True)) + self.autocommit(bool(autocommit)) self.messages = [] def cursor(self, cursorclass=None): -- cgit v1.2.1