def close(self):
        """
        Close the file. A closed file cannot be read or written any more.
        """
        self.save()
        self.manager.remove_temp()
        self.cfb.close()
        self.is_open = False
        self.f.close()
def close ( self ) : self . save ( ) self . manager . remove_temp ( ) self . cfb . close ( ) self . is_open = False self . f . close ( )
Close the file. A closed file cannot be read or written any more.