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