def get_list_or_404(klass, *args, **kwargs):
    queryset = _get_queryset(klass)
    obj_list = list(queryset.filter(*args, **kwargs))
    if not obj_list:
        raise Http404('No %s matches the given query.' % queryset.model._meta.object_name)
    return obj_list
Check input for Python syntax errors.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/shortcuts/__init__.py/get_list_or_404--crossover with--dataset/ETHPy150Open jonathanslenders/ptpython/ptpython/validator.py/PythonValidator.validate