'Returns a list of devices for a specified partition.
Deliberately includes duplicates.'

def _devs_for_part(self, part):

    if (self._replica2part2dev is None):
        return []
    devs = []
    for part2dev in self._replica2part2dev:
        if (part >= len(part2dev)):
            continue
        dev_id = part2dev[part]
        if (dev_id == NONE_DEV):
            continue
        devs.append(self.devs[dev_id])
    return devs
