(self)
Override to implement custom flushing behaviour.

        This version just zaps the buffer to empty.
Override to implement custom flushing behaviour.
Override to implement custom flushing behaviour .
def flush(self):
        """
        Override to implement custom flushing behaviour.

        This version just zaps the buffer to empty.
        """
        self.acquire()
        try:
            self.buffer.clear()
        finally:
            self.release()
def flush ( self ) : self . acquire ( ) try : self . buffer . clear ( ) finally : self . release ( )