def consume_line(self, line):
data = RE_VALUE_KEY.split(line.strip(), <NUM_LIT:1>)<EOL>if len(data) == <NUM_LIT:1>:<EOL><INDENT>return float(data[<NUM_LIT:0>]), None<EOL><DEDENT>else:<EOL><INDENT>return float(data[<NUM_LIT:0>]), data[<NUM_LIT:1>].strip()<EOL><DEDENT>
Consume data from a line.