'Clear input buffer, discarding all that is in the buffer.'

def reset_input_buffer(self):

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