def check_remove_bokeh_install(site_packages):
    old_bokeh_files = []
    for d in os.listdir(site_packages):
        bokeh_path = join(site_packages, d)
        if not (d == 'bokeh' or d.startswith('bokeh-')):
            continue
        old_bokeh_files.append(bokeh_path)

    if len(old_bokeh_files) == 0:
        return

    print("Found old Bokeh files:")
    for path in old_bokeh_files:
        print(" - %s" % path)
    val = input("Remove %s? [y|N] " % ("it" if len(old_bokeh_files)==1 else "them",))
    if val == "y":
        print("Removing old Bokeh files...", end=" ")
        for path in old_bokeh_files:
            try:
                if isdir(path): shutil.rmtree(path)
                else: os.remove(path)
            except (IOError, OSError) as e:
                print(bright(red(path % "\nUnable to remove old Bokeh file at %s, exiting")) + " [reason: %s]" % e)
                sys.exit(-1)
        print("Done")
    else:
        print(bright(red("Old Bokeh files not removed, exiting.")))
        sys.exit(1)
dataset/ETHPy150Open bokeh/bokeh/setup.py/check_remove_bokeh_install/swapped operands of `%`