def rm_if_exists(filename):
    try:
        os.remove(filename)
        return True
    except __HOLE__ as e:
        if e.errno != errno.ENOENT: # (no such file or directory)
            raise
        return False
dataset/ETHPy150Open memex-explorer/memex-explorer/source/apps/crawl_space/utils.py/rm_if_exists