def reopen(self):
        if self._cursor is None:
            self.close()

        try:
            self._cursor = self._connection.cursor()
            return
        except:
            if not self._pool.reconnect:
                raise
            else:
                log.err(None, "Cursor creation failed")

        if self._pool.noisy:
            log.msg('Connection lost, reconnecting')

        self.reconnect()
        self._cursor = self._connection.cursor()
dataset/ETHPy150Open twisted/twisted/twisted/enterprise/adbapi.py/Transaction.reopen/operator `is not` -> `is`