From 551680d06e7a0913690414c78d6dfdb590f1588f Mon Sep 17 00:00:00 2001 From: Brian Jarrett Date: Fri, 11 Jul 2014 10:22:07 -0600 Subject: Style fixes for dialects package --- lib/sqlalchemy/dialects/mysql/cymysql.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/sqlalchemy/dialects/mysql/cymysql.py') diff --git a/lib/sqlalchemy/dialects/mysql/cymysql.py b/lib/sqlalchemy/dialects/mysql/cymysql.py index c9f82a0bd..7bf8fac66 100644 --- a/lib/sqlalchemy/dialects/mysql/cymysql.py +++ b/lib/sqlalchemy/dialects/mysql/cymysql.py @@ -20,6 +20,7 @@ from .mysqldb import MySQLDialect_mysqldb from .base import (BIT, MySQLDialect) from ... import util + class _cymysqlBIT(BIT): def result_processor(self, dialect, coltype): """Convert a MySQL's 64 bit, variable length binary string to a long. @@ -74,7 +75,7 @@ class MySQLDialect_cymysql(MySQLDialect_mysqldb): def is_disconnect(self, e, connection, cursor): if isinstance(e, self.dbapi.OperationalError): return self._extract_error_code(e) in \ - (2006, 2013, 2014, 2045, 2055) + (2006, 2013, 2014, 2045, 2055) elif isinstance(e, self.dbapi.InterfaceError): # if underlying connection is closed, # this is the error you get -- cgit v1.2.1