def fetch(self):
        content = self.buffer
        self.buffer = ''

        return content
Empties buffer and returns its content.
dataset/ETHPy150Open sdispater/cleo/cleo/outputs/buffered_output.py/BufferedOutput.fetch