def __del__(self):
        """
        If ``delete_on_gc`` was set to true when this
        ``PickleCorpusView`` was created, then delete the corpus view's
        fileid.  (This method is called whenever a
        ``PickledCorpusView`` is garbage-collected.
        """
        if getattr(self, '_delete_on_gc'):
            if os.path.exists(self._fileid):
                try: os.remove(self._fileid)
                except (OSError, __HOLE__): pass
        self.__dict__.clear() # make the garbage collector's job easier
dataset/ETHPy150Open nltk/nltk/nltk/corpus/reader/util.py/PickleCorpusView.__del__