#NEWLINE# def get_events( self , source ) : #NEWLINE# #INDENT# parser = self . collector ( ) #NEWLINE# try : #NEWLINE# #INDENT# for s in source : #NEWLINE# #INDENT# parser . feed ( s ) #NEWLINE# #UNINDENT# parser . close ( ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# raise #NEWLINE# #UNINDENT# return parser . get_events ( )