'Clear output buffer, aborting the current output and
discarding all that is in the buffer.'

def reset_output_buffer(self):

    if (not self.is_open):
        raise portNotOpenError
    if self.logger:
        self.logger.info('reset_output_buffer()')
    try:
        while self.queue.qsize():
            self.queue.get_nowait()
    except queue.Empty:
        pass
