code: def filter_slaves(self, slaves):
          "Remove slaves that are in an ODOWN or SDOWN state"
          slaves_alive = []
          for slave in slaves:
              if slave['is_odown'] or slave['is_sdown']:
                  continue
              slaves_alive.append((slave['ip'], slave['port']))
          return slaves_alivf filter_slaves(self, slaves):
          "Remove slaves that are in an ODOWN or SDOWN state"
          slaves_alive = []
          for slave in slaves:
              if slave['is_odown'] or slave['is_sdown']:
                  continue
              slaves_alive.append((slave['ip'], slave['port']))
          return slaves_alive
docs: Remove slaves that are in an ODOWN or SDOWN state