source/lambda/configuration/setbuilders/setbuilder.py [145:165]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        result = []

        # gets list of single and subsequent items in the set
        def get_sub_sets():
            if the_set is not None and len(the_set) > 0:
                temp = sorted(the_set)
                last = temp[0]
                current = {temp[0]}

                for index in range(1, len(temp)):
                    if temp[index] == last + 1:
                        current.add(temp[index])
                    else:
                        yield current
                        current = {temp[index]}
                    last = temp[index]

                yield current

        # build string from subset
        for subset in get_sub_sets():
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



source/lambda/util/display_helper.py [50:68]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        result = []

        def get_sub_sets():
            if the_set is not None and len(the_set) > 0:
                temp = sorted(the_set)
                last = temp[0]
                current = {temp[0]}

                for index in range(1, len(temp)):
                    if temp[index] == last + 1:
                        current.add(temp[index])
                    else:
                        yield current
                        current = {temp[index]}
                    last = temp[index]

                yield current

        for subset in get_sub_sets():
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



