parameters: (self)
docstring: Flush and close the mailbox.
docstring_summary: Flush and close the mailbox.
docstring_tokens: Flush and close the mailbox .
function: def close(self):
          """Flush and close the mailbox."""
          self.flush()
          if self._locked:
              self.unlock()
          self._file.close()
function_tokens: def close ( self ) : self . flush ( ) if self . _locked : self . unlock ( ) self . _file . close ( )