@contextfunction
def paginate(context, items, plength=None):
    "Pagination"
    request = context['request']

    skip = 0
    if request.GET in 'page_skip':
        try:
            skip = long(request.GET['page_skip'])
        except Exception:
            pass

    if not plength:
        plength = getattr(settings, 'HARDTREE_PAGINATOR_LENGTH', 10)
    length = skip + plength

    return items[skip:length]
dataset/ETHPy150Open treeio/treeio/treeio/core/templatetags/modules.py/paginate/swapped operands of `in`