def __line_gen(self):
while True:<EOL><INDENT>line = self.__buffer.readline()<EOL>if not line:<EOL><INDENT>self.__recv()<EOL>continue<EOL><DEDENT>yield line<EOL><DEDENT>
Generator that reads a line of data from the server.

        It first attempts to read from the internal buffer. If there is not
        enough data to read a line it then requests more data from the server
        and adds it to the buffer. This process repeats until a line of data
        can be read from the internal buffer.

        Yields:
            A line of data when it becomes available.