#NEWLINE# def Intersect( self , mask1 , mask2 ) : #NEWLINE# #INDENT# 'Intersects mask1 and mask2 into this FieldMask.' #NEWLINE# _CheckFieldMaskMessage ( mask1 ) #NEWLINE# _CheckFieldMaskMessage ( mask2 ) #NEWLINE# tree = _FieldMaskTree ( mask1 ) #NEWLINE# intersection = _FieldMaskTree ( ) #NEWLINE# for path in mask2 . paths : #NEWLINE# #INDENT# tree . IntersectPath ( path , intersection ) #NEWLINE# #UNINDENT# intersection . ToFieldMask ( self )