#NEWLINE# def remove_links( self ) : #NEWLINE# #INDENT# 'Iterate the links associated with this edge and make sure that\n        their values are unset in the target options.\n        ' #NEWLINE# for link in self . _links : #NEWLINE# #INDENT# target_option = link [ 1 ] #NEWLINE# try : #NEWLINE# #INDENT# value = link [ 0 ] . value #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# value = link [ 0 ] . _value #NEWLINE# #UNINDENT# if ( not isinstance ( value , ( list , tuple ) ) ) : #NEWLINE# #INDENT# value = [ value ] #NEWLINE# #UNINDENT# for v in value : #NEWLINE# #INDENT# if ( v in target_option . _value ) : #NEWLINE# #INDENT# i = target_option . _value . index ( v ) #NEWLINE# del target_option . _value [ i ] #NEWLINE# #UNINDENT# #UNINDENT# if ( len ( target_option . _value ) == 0 ) : #NEWLINE# #INDENT# target_option . dependency = False