#NEWLINE# def _devs_for_part( self , part ) : #NEWLINE# #INDENT# '\n        Returns a list of devices for a specified partition.\n\n        Deliberately includes duplicates.\n        ' #NEWLINE# if ( self . _replica2part2dev is None ) : #NEWLINE# #INDENT# return [ ] #NEWLINE# #UNINDENT# devs = [ ] #NEWLINE# for part2dev in self . _replica2part2dev : #NEWLINE# #INDENT# if ( part >= len ( part2dev ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# dev_id = part2dev [ part ] #NEWLINE# if ( dev_id == NONE_DEV ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# devs . append ( self . devs [ dev_id ] ) #NEWLINE# #UNINDENT# return devs