def results(cl):
    try:
        from django.contrib.admin.templatetags.admin_list import ResultList
        if cl.formset:
            for res, form in zip(cl.result_list, cl.formset.forms):
                yield ResultList(form, items_for_result(cl, res, form))
        else:
            for res in cl.result_list:
                yield ResultList(None, items_for_result(cl, res, None))
    except __HOLE__:
        if cl.formset:
            for res, form in zip(cl.result_list, cl.formset.forms):
                yield list(items_for_result(cl, res, form))
        else:
            for res in cl.result_list:
                yield list(items_for_result(cl, res, None))
dataset/ETHPy150Open callowayproject/django-supertagging/supertagging/templatetags/supertagging_tags.py/results