

def readline(self):
    if (not self.accepted):
        (self.accepted, addr) = self.sock.accept()
    while (self.buf.find('\n') == (- 1)):
        chunk = self.accepted.recv(1024)
        self.buf += chunk
    (line, self.buf) = self.buf.split('\n', 1)
    log.debug(('mockserver.readline: %r' % line))
    return line

dataset/ETHPy150Open uber/clay/tests/test_stats.py MockTCPListener.readline/original