def __del__(self, *args):
        # io.TextIOWrapper close the file on __del__, let the underlying file decide
        if not self.closed and self.writable():
            super(TextWrapper, self).flush()

        try:
            self._stream.__del__(*args)
        except __HOLE__:
            pass
dataset/ETHPy150Open spotify/luigi/luigi/format.py/TextWrapper.__del__