def get_data_from_context(context):
    """Get the django paginator data object from the given *context*.

    The context is a dict-like object. If the context key ``endless``
    is not found, a *PaginationError* is raised.
    """
    try:
        return context['endless']
    except __HOLE__:
        raise exceptions.PaginationError(
            'Cannot find endless data in context.')
dataset/ETHPy150Open frankban/django-endless-pagination/endless_pagination/utils.py/get_data_from_context