def _check_list_display_links(self, obj):

        if obj.list_display_links is None:
            return []
        elif not isinstance(obj.list_display_links, (list, tuple)):
            return must_be('a list, a tuple, or None', option='list_display_links', obj=obj, id='admin.E110')
        else:
            return list(chain(*[
                self._check_list_display_links_item(obj, field_name, "list_display_links[%d]" % index)
                for index, field_name in enumerate(obj.list_display_links)
            ]))
Converts a path to the format used by gyp.
dataset/ETHPy150Open django/django/django/contrib/admin/checks.py/ModelAdminChecks._check_list_display_links--crossover with--dataset/ETHPy150Open pyokagan/gyp/pylib/gyp/generator/analyzer.py/_ToGypPath