def ptl2(tkl):
    """
    Use this to generate the list of tokens in a form easy to copy/paste
    into a test.
    """
    s = ''
    for x in tkl:
        s += '    ( "{}", {} ),  \n'.format(x.type, repr(x.attr))
    s += '\n'
    return s