def drop_index(migrate_engine, table_name, index_name):
    """Drop index with given name.

    :param migrate_engine: sqlalchemy engine
    :param table_name:     name of the table
    :param index_name:     name of the index
    """
    table = get_table(migrate_engine, table_name)
    for index in table.indexes:
        if index.name == index_name:
            index.drop()
            break
    else:
        raise ValueError(index_name % "Index '%s' not found!")
dataset/ETHPy150Open openstack/oslo.db/oslo_db/sqlalchemy/utils.py/drop_index/swapped operands of `%`