def handle_lines(self):
while "<STR_LIT:\r\n>" in self.buffer:<EOL><INDENT>line, self.buffer = self.buffer.split("<STR_LIT:\r\n>", <NUM_LIT:1>)<EOL>if valid_packet(line):<EOL><INDENT>self.handle_raw_packet(line)<EOL><DEDENT>else:<EOL><INDENT>log.warning('<STR_LIT>', line)<EOL><DEDENT><DEDENT>
Assemble incoming data into per-line packets.