  
      """
      bits = token.split_contents()[1:]
      if len(bits) < 1:
          raise TemplateSyntaxError, "'firstof' statement requires at least one argument"
      return FirstOfNode(bits)
  firstof = register.tag(firstof)
  
  #@register.tag(name="for")
  def do_for(parser, token):
 
</s> remove         raise TemplateSyntaxError, "'if' statement requires at least one argument"
    # bits now looks something like this: ['a', 'or', 'not', 'b', 'or', 'c.d']
 </s> add         raise TemplateSyntaxError("'if' statement requires at least one argument")
    # Bits now looks something like this: ['a', 'or', 'not', 'b', 'or', 'c.d'] </s> remove         raise TemplateSyntaxError, "'%s' takes at least one argument (path to a view)" % bits[0]
 </s> add         raise TemplateSyntaxError("'%s' takes at least one argument"
                                  " (path to a view)" % bits[0]) </s> remove         raise TemplateSyntaxError, "Invalid templatetag argument: '%s'. Must be one of: %s" % \
            (tag, TemplateTagNode.mapping.keys())
 </s> add         raise TemplateSyntaxError("Invalid templatetag argument: '%s'."
                                  " Must be one of: %s" %
                                  (tag, TemplateTagNode.mapping.keys())) </s> remove         raise TemplateSyntaxError, "'for' statements should have at least four words: %s" % token.contents
 </s> add         raise TemplateSyntaxError("'for' statements should have at least four"
                                  " words: %s" % token.contents) </s> remove         raise TemplateSyntaxError, "'ssi' tag takes one argument: the path to the file to be included"
 </s> add         raise TemplateSyntaxError("'ssi' tag takes one argument: the path to"
                                  " the file to be included")
        raise TemplateSyntaxError("'firstof' statement requires at least one"
                                  " argument")
  
      """
      bits = token.split_contents()[1:]
      if len(bits) < 1:
        raise TemplateSyntaxError("'firstof' statement requires at least one"
                                  " argument")
      return FirstOfNode(bits)
  firstof = register.tag(firstof)
  
  #@register.tag(name="for")
  def do_for(parser, token):
keep keep keep keep replace keep keep keep keep keep
 Style and import fixes.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@6641 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/template/defaulttags.py