summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINADA Naoki <inada-n@klab.com>2013-05-21 13:32:23 +0900
committerINADA Naoki <inada-n@klab.com>2013-05-21 13:32:23 +0900
commit470eb56c4ddb742c70d9e11c4f6601ccf4071fe5 (patch)
tree8abf3a34eaba720e976525fb2ec2fcf32df11c41
parentc1b8e8a0474c44f60ed8e08b3be8dc7f293ce7b8 (diff)
downloadmysqldb1-470eb56c4ddb742c70d9e11c4f6601ccf4071fe5.tar.gz
Fix typo.
-rw-r--r--MySQLdb/connections.py2
1 files changed, 1 insertions, 1 deletions
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):