

def __init__(self, number, key, var_name):
    self.page_number_variable = None
    if (number is None):
        self.page_number = 1
    elif number.isdigit():
        self.page_number = int(number)
    else:
        self.page_number_variable = template.Variable(number)
    self.querystring_key_variable = None
    if (key is None):
        self.querystring_key = settings.PAGE_LABEL
    elif ((key[0] in ('"', "'")) and (key[(- 1)] == key[0])):
        self.querystring_key = key[1:(- 1)]
    else:
        self.querystring_key_variable = template.Variable(key)
    self.var_name = var_name

dataset/ETHPy150Open frankban/django-endless-pagination/endless_pagination/templatetags/endless.py ShowCurrentNumberNode.__init__/original