#NEWLINE# def peersetup_collect_cb( self , status , uri , peer_node_id , peer_node_ids , peers , org_cb ) : #NEWLINE# #INDENT# if ( uri in peers ) : #NEWLINE# #INDENT# peers . remove ( uri ) #NEWLINE# peer_node_ids [ uri ] = ( peer_node_id , status ) #NEWLINE# #UNINDENT# if ( not peers ) : #NEWLINE# #INDENT# comb_status = max ( [ s for ( _ , s ) in peer_node_ids . values ( ) ] ) #NEWLINE# org_cb ( peer_node_ids = peer_node_ids , status = comb_status )