#NEWLINE# def _process_claims_changed( properties_diff , past_item , current_item ) : #NEWLINE# #INDENT# claims_changed = [ ] #NEWLINE# for property in properties_diff . changed : #NEWLINE# #INDENT# parent_guids = { claim . snak : claim for claim in past_item . claims [ property ] } #NEWLINE# for claim in current_item . claims [ property ] : #NEWLINE# #INDENT# if ( ( claim . snak in parent_guids ) and ( claim not in past_item . claims [ property ] ) ) : #NEWLINE# #INDENT# claims_changed . append ( ( parent_guids [ claim . snak ] , claim ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return current_item