def delete(self, fname):
        try:
            os.remove(fname)
            # Trying to remove directory in case it's empty
            dirname = os.path.dirname(fname)
            os.rmdir(dirname)
        except (IOError, __HOLE__):
            pass
dataset/ETHPy150Open Suor/django-cacheops/cacheops/simple.py/FileCache.delete