(self)
Flushes the stream.
Flushes the stream.
Flushes the stream .
def flush(self):
        """
        Flushes the stream.
        """
        self.acquire()
        try:
            if self.stream and hasattr(self.stream, "flush"):
                self.stream.flush()
        finally:
            self.release()
def flush ( self ) : self . acquire ( ) try : if self . stream and hasattr ( self . stream , "flush" ) : self . stream . flush ( ) finally : self . release ( )