def really_rmtree(path):
    if sys.platform != "win32":
        shutil.rmtree(path)
    else:
        #  If it's going to error out legitimately, let it do so.
        if not os.path.exists(path):
            shutil.rmtree(path)
        #  This is a little retry loop that catches troublesome errors.
        for _ in xrange(100):
            try:
                shutil.rmtree(path)
            except WindowsError, e:
                if e.errno in (errno.ENOTEMPTY,errno.EACCES,):
                    time.sleep(0.01)
                elif e.errno == errno.ENOENT:
                    if not os.path.exists(path):
                        return
                    time.sleep(0.01)
                else:
                    raise
            else:
                break
        else:
            shutil.rmtree(path)
Add other graph to this graph.
dataset/ETHPy150Open cloudmatrix/esky/esky/util.py/really_rmtree--crossover with--dataset/ETHPy150Open nerdvegas/rez/src/rez/vendor/pygraph/mixins/common.py/common.add_graph