#NEWLINE# def keyattr_levels( soup ) : #NEWLINE# #INDENT# combined = [ ] #NEWLINE# for x in textGather ( soup ) : #NEWLINE# #INDENT# for y in x [ 0 ] . attrs : #NEWLINE# #INDENT# combined . append ( ( y , x [ 2 ] ) ) #NEWLINE# #UNINDENT# #UNINDENT# return combined