Ticket #4123: firstof_patch.diff

File firstof_patch.diff, 443 bytes (added by Wesley Fok <portland@…>, 17 years ago)

Simple patch for firstof compilation function.

  • defaulttags.py

     
    491491
    492492    but obviously much cleaner!
    493493    """
    494     bits = token.contents.split()[1:]
     494    bits = token.split_contents()[1:]
    495495    if len(bits) < 1:
    496496        raise TemplateSyntaxError, "'firstof' statement requires at least one argument"
    497497    return FirstOfNode(bits)
Back to Top