def __del__(self):
        try:
            shutil.rmtree(self.cachedir, ignore_errors=True)
        except __HOLE__:
            print("AttributeError: 'CoxPH' object has no attribute 'cachedir'")
            pass
dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/sandbox/cox.py/CoxPH.__del__