#NEWLINE# @ staticmethod #NEWLINE# def print_generator( app_iter ) : #NEWLINE# #INDENT# 'Iterator that prints the contents of a wrapper string.' #NEWLINE# print ( ( ( '*' * 40 ) + ' BODY' ) ) #NEWLINE# for part in app_iter : #NEWLINE# #INDENT# sys . stdout . write ( part ) #NEWLINE# sys . stdout . flush ( ) #NEWLINE# ( yield part ) #NEWLINE# #UNINDENT# print ( )