#NEWLINE# def parse_events( s ) : #NEWLINE# #INDENT# i = 0 #NEWLINE# while ( ( i + 16 ) < len ( s ) ) : #NEWLINE# #INDENT# ( wd , mask , cookie , length ) = struct . unpack_from ( 'iIII' , s , i ) #NEWLINE# name = s [ ( i + 16 ) : ( ( i + 16 ) + length ) ] . rstrip ( '\x00' ) #NEWLINE# i += ( 16 + length ) #NEWLINE# ( yield ( wd , mask , cookie , cookie ) )