def __del__(self):
        try:
            if not self.fileclosed:
                self.close()
        except:
            raise Exception("Exception caught in workbook destructor. "
                            "Explicit close() may be required for workbook.")
Close file in destructor if it hasn't been closed explicitly.
dataset/ETHPy150Open jmcnamara/XlsxWriter/xlsxwriter/workbook.py/Workbook.__del__