code: def flushInput(self):
                  '''flush any pending input'''
                  self.buf = ''
                  saved_timeout = self.timeout
                  self.timeout = 0.5
                  self._recv()
                  self.timeout = saved_timeout
                  self.buf = ''
                  self.debug("flushInput"f flushInput(self):
                  '''flush any pending input'''
                  self.buf = ''
                  saved_timeout = self.timeout
                  self.timeout = 0.5
                  self._recv()
                  self.timeout = saved_timeout
                  self.buf = ''
                  self.debug("flushInput")
docs: flush any pending input