#NEWLINE# def check_contingent_for_circular_dependency( contingent , yaml_lookup , deps = None ) : #NEWLINE# #INDENT# deps = ( deps or [ ] ) #NEWLINE# cond = parse_condition_string ( contingent [ 'condition' ] ) #NEWLINE# dep = ( '%s.%s' % ( cond [ 'type' ] , cond [ 'id' ] ) ) #NEWLINE# if ( dep in deps ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# deps . append ( dep ) #NEWLINE# cond_setting = yaml_lookup [ cond [ 'type' ] ] [ yaml_lookup [ 'id' ] ] #NEWLINE# return check_setting_for_circular_dependency ( cond_setting , yaml_lookup , deps )