parameters: (self)
docstring: Flushes the stream.
docstring_summary: Flushes the stream.
docstring_tokens: Flushes the stream .
function: def flush(self):
          """
          Flushes the stream.
          """
          self.acquire()
          try:
              if self.stream and hasattr(self.stream, "flush"):
                  self.stream.flush()
          finally:
              self.release()
function_tokens: def flush ( self ) : self . acquire ( ) try : if self . stream and hasattr ( self . stream , "flush" ) : self . stream . flush ( ) finally : self . release ( )