#NEWLINE# def handleUnion( self , schema , datum ) : #NEWLINE# #INDENT# returnVal = datum #NEWLINE# for unionSchema in schema . schemas : #NEWLINE# #INDENT# result = self . handleSchema ( unionSchema , datum ) #NEWLINE# if ( result == self . sinkValue ) : #NEWLINE# #INDENT# return self . sinkValue #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( datum . type != 'null' ) : #NEWLINE# #INDENT# returnVal = result #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return returnVal