(self)
Flush and close the mailbox.
Flush and close the mailbox.
Flush and close the mailbox .
def close(self):
        """Flush and close the mailbox."""
        try:
            self.flush()
        finally:
            try:
                if self._locked:
                    self.unlock()
            finally:
                self._file.close()
def close ( self ) : try : self . flush ( ) finally : try : if self . _locked : self . unlock ( ) finally : self . _file . close ( )