def readline(self, size=-<NUM_LIT:1>):
if self.closed:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>pos = self.buffer.find(b"<STR_LIT:\n>") + <NUM_LIT:1><EOL>if pos == <NUM_LIT:0>:<EOL><INDENT>while True:<EOL><INDENT>buf = self.fileobj.read(self.blocksize)<EOL>self.buffer += buf<EOL>if not buf or b"<STR_LIT:\n>" in buf:<EOL><INDENT>pos = self.buffer.find(b"<STR_LIT:\n>") + <NUM_LIT:1><EOL>if pos == <NUM_LIT:0>:<EOL><INDENT>pos = len(self.buffer)<EOL><DEDENT>break<EOL><DEDENT><DEDENT><DEDENT>if size != -<NUM_LIT:1>:<EOL><INDENT>pos = min(size, pos)<EOL><DEDENT>buf = self.buffer[:pos]<EOL>self.buffer = self.buffer[pos:]<EOL>self.position += len(buf)<EOL>return buf<EOL>
Read one entire line from the file. If size is present
           and non-negative, return a string with at most that
           size, which may be an incomplete line.