#NEWLINE# def __init__( self , nodes = ( ) , replicas = 128 ) : #NEWLINE# #INDENT# self . replicas = replicas #NEWLINE# self . ring = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . sorted_keys = [ ] #NEWLINE# for node in nodes : #NEWLINE# #INDENT# self . add_node ( replicas )