def close(self):
        self.flush()
        if self._locked:
            self.unlock()
        self._file.close()  # Sync has been done by self.flush() above.
Flush and close the mailbox.
dataset/ETHPy150Open babble/babble/include/jython/Lib/mailbox.py/_singlefileMailbox.close