def data_received(self, data):
self.tokenizer.feed(data)<EOL>while self.tokenizer.has_tokens():<EOL><INDENT>raw = self.tokenizer.get_next_token()<EOL>frame = frame_from_raw(raw)<EOL>if frame is not None:<EOL><INDENT>self.frame_received_cb(frame)<EOL><DEDENT><DEDENT>
Handle data received.