'recvrepeat(timeout = default) -> str
Receives data until a timeout or EOF is reached.
Examples:
>>> data = [
... \'d\',
... \'\', # simulate timeout
... \'c\',
... \'b\',
... \'a\',
>>> def delayrecv(n, data=data):
...     return data.pop()
>>> t = tube()
>>> t.recv_raw = delayrecv
>>> t.recvrepeat(0.2)
\'abc\'
>>> t.recv()
\'d\''

def recvrepeat(self, timeout=default):

    try:
        while self._fillbuffer(timeout=timeout):
            pass
    except EOFError:
        pass
    return self.buffer.get()
