

@register.tag
def show_pages(parser, token):
    'Show page links.\n\n    Usage:\n\n    .. code-block:: html+django\n\n        {% show_pages %}\n\n    It is just a shortcut for:\n\n    .. code-block:: html+django\n\n        {% get_pages %}\n        {{ pages }}\n\n    You can set ``ENDLESS_PAGINATION_PAGE_LIST_CALLABLE`` in your *settings.py*\n    to a callable, or to a dotted path representing a callable, used to\n    customize the pages that are displayed.\n\n    See the *__unicode__* method of ``endless_pagination.models.PageList`` for\n    a detailed explanation of how the callable can be used.\n\n    Must be called after ``{% paginate objects %}``.\n    '
    if (len(token.contents.split()) != 1):
        msg = ('%r tag takes no arguments' % token.contents.split()[0])
        raise template.TemplateSyntaxError(token)
    return ShowPagesNode()

dataset/ETHPy150Open frankban/django-endless-pagination/endless_pagination/templatetags/endless.py show_pages/VarMisuse@59/321 `msg`->`token`