#NEWLINE# def tocode( self ) : #NEWLINE# #INDENT# ret = [ ] #NEWLINE# it = None #NEWLINE# for scope in self . scopechain : #NEWLINE# #INDENT# l = scope . tocode ( ) #NEWLINE# if l : #NEWLINE# #INDENT# ret . append ( l ) #NEWLINE# #UNINDENT# if ( it is not None ) : #NEWLINE# #INDENT# ret . append ( it ) #NEWLINE# #UNINDENT# if ret : #NEWLINE# #INDENT# ret . append ( '_' ) #NEWLINE# #UNINDENT# if ( ( scope . scopetype == 'for' ) and ( scope . scopeloop is not None ) ) : #NEWLINE# #INDENT# it = ( ( '_' + str ( scope . scopeloop ) ) + '_' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# it = None #NEWLINE# #UNINDENT# #UNINDENT# ret = ret [ : ( - 1 ) ] #NEWLINE# return '' . join ( ret )