parameters: (self)
docstring: Write out pending messages in sorted order.
docstring_summary: Write out pending messages in sorted order.
docstring_tokens: Write out pending messages in sorted order .
function: def write_pending(self):
          """Write out pending messages in sorted order."""
          self._messages.sort()
          for message in self._messages:
              self._write(message)
          self._messages = []
function_tokens: def write_pending ( self ) : self . _messages . sort ( ) for message in self . _messages : self . _write ( message ) self . _messages = [ ]