parameters: (self)
docstring: Override to implement custom flushing behaviour.
  
          This version just zaps the buffer to empty.
docstring_summary: Override to implement custom flushing behaviour.
docstring_tokens: Override to implement custom flushing behaviour .
function: def flush(self):
          """
          Override to implement custom flushing behaviour.
  
          This version just zaps the buffer to empty.
          """
          self.acquire()
          try:
              self.buffer = []
          finally:
              self.release()
function_tokens: def flush ( self ) : self . acquire ( ) try : self . buffer = [ ] finally : self . release ( )