code: def read(src):
  	'Event generator from u2 stream.'
  	parser, buff_agg = Parser(), ''
  	while True:
  		buff = parser.read(src)
  		if not buff: break # EOF
  		buff_agg += buff
  		while True:
  			buff_agg, ev = parser.process(buff_agg)
  			if ev is None: break
  			yield ef read(src):
  	'Event generator from u2 stream.'
  	parser, buff_agg = Parser(), ''
  	while True:
  		buff = parser.read(src)
  		if not buff: break # EOF
  		buff_agg += buff
  		while True:
  			buff_agg, ev = parser.process(buff_agg)
  			if ev is None: break
  			yield ev
docs: Event generator from u2 stream.