def pop_asvar(bits):
    if len(bits) >= 2 and bits[-2] == 'as':
        asvar = bits[-1]
        del bits[-2:]
        return asvar
dataset/ETHPy150Open funkybob/django-sniplates/sniplates/templatetags/sniplates.py/pop_asvar/original