#NEWLINE# def wrap( self , stream ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# while True : #NEWLINE# #INDENT# ch = stream . next ( ) #NEWLINE# self . line . append ( ch ) #NEWLINE# if ( ch == '\n' ) : #NEWLINE# #INDENT# for tok in self . emit_line ( ) : #NEWLINE# #INDENT# ( yield ch ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# except StopIteration : #NEWLINE# #INDENT# for tok in self . emit_line ( ) : #NEWLINE# #INDENT# ( yield tok )