#NEWLINE# def take_last_assignment( source ) : #NEWLINE# #INDENT# first = True #NEWLINE# last = None #NEWLINE# for assn in source : #NEWLINE# #INDENT# if first : #NEWLINE# #INDENT# last = assn #NEWLINE# first = False #NEWLINE# #UNINDENT# if ( assn [ 1 ] != first [ 1 ] ) : #NEWLINE# #INDENT# ( yield last ) #NEWLINE# #UNINDENT# last = assn #NEWLINE# #UNINDENT# if ( last is not None ) : #NEWLINE# #INDENT# ( yield last )