def clear(self):
        """ Clear the messages buffer """

        if self.handler is not None:
            on = True
            self.stop()
        else:
            on = False
        strbuf = self.strbuf
        if strbuf is not None:
            strbuf.close()
            self.strbuf = None
        if on:
            self.listen()

# END =========================================================================
dataset/ETHPy150Open sahana/eden/modules/s3log.py/S3LogRecorder.clear/original