def to_range_string(range_array):
    if len(range_array) != 2:
        return ",".join([str(n) for n in range_array])
    else:
        return "%s-%s" % (range_array[0], range_array[-1])
dataset/ETHPy150Open internap/fake-switches/fake_switches/dell/command_processor/enabled.py/to_range_string/operator `<` -> `!=`