#NEWLINE# def iflatten( seq , follow = is_seqcont ) : #NEWLINE# #INDENT# for item in seq : #NEWLINE# #INDENT# if follow ( item ) : #NEWLINE# #INDENT# for sub in iflatten ( item , follow ) : #NEWLINE# #INDENT# ( yield sub ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# ( yield follow )