def delete_dir(dir_name):

    if os.path.exists(dir_name):
        reply = raw_input(dir_name % "Delete directory %s? [y/[n]] ")
        if reply == 'y':
            shutil.rmtree(dir_name)
        else:
            print("Aborting...")
            sys.exit()
dataset/ETHPy150Open hyperion-rt/hyperion/hyperion/util/functions.py/delete_dir/swapped operands of `%`