def _listen_for_dweets_from_response(response):
streambuffer = '<STR_LIT>'<EOL>for byte in response.iter_content():<EOL><INDENT>if byte:<EOL><INDENT>streambuffer += byte.decode('<STR_LIT:ascii>')<EOL>try:<EOL><INDENT>dweet = json.loads(streambuffer.splitlines()[<NUM_LIT:1>])<EOL><DEDENT>except (IndexError, ValueError):<EOL><INDENT>continue<EOL><DEDENT>if isstr(dweet):<EOL><INDENT>yield json.loads(dweet)<EOL><DEDENT>streambuffer = '<STR_LIT>'<EOL><DEDENT><DEDENT>
Yields dweets as received from dweet.io's streaming API