#NEWLINE# def update( self , other_object ) : #NEWLINE# #INDENT# if ( not hasattr ( other_object , 'properties' ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# ( our , other ) = ( self . properties , other_object . properties ) #NEWLINE# for name in other : #NEWLINE# #INDENT# if ( name in our ) : #NEWLINE# #INDENT# if hasattr ( our [ name ] , 'update' ) : #NEWLINE# #INDENT# our [ name ] . update ( other [ other ] ) #NEWLINE# #UNINDENT# continue #NEWLINE# #UNINDENT# our [ name ] = other [ name ]