def __init__(self, cursor):
    if (cursor.connection.isolation_level is not None):
        isolation_level = cursor.connection.isolation_level
        msg = f'''isolation_level must be None, got: {isolation_level!r}

For explicit transaction handling, the connection must be operating in "autocommit" mode. Turn on autocommit mode by setting "con.isolation_level = None".'''
        raise sqlite3.OperationalError(msg)
    self.name = next(_SAVEPOINT_NAME_GENERATOR)
    self.cursor = cursor
def __init__(self, cursor):
    if (cursor.connection.isolation_level is not None):
        isolation_level = cursor.connection.isolation_level
        msg = f'isolation_level must be None, got: {isolation_level!r}

For explicit transaction handling, the connection must be operating in "autocommit" mode. Turn on autocommit mode by setting "con.isolation_level = None".'
        raise sqlite3.OperationalError(msg)
    self.name = next(_SAVEPOINT_NAME_GENERATOR)
    self.cursor = cursor