def is_disconnect(self, e, connection, cursor):
        # TODO: eGenix recommends checking connection.closed here
        # Does that detect dropped connections ?
        if isinstance(e, self.dbapi.ProgrammingError):
            return str(e) in "connection already closed"
        elif isinstance(e, self.dbapi.Error):
            return '[08S01]' in str(e)
        else:
            return False
dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/sqlalchemy/connectors/mxodbc.py/MxODBCConnector.is_disconnect/swapped operands of `in`