      The URL will look like ``/clients/client/123/``.
      """
      bits = token.contents.split(' ', 2)
      if len(bits) < 2:
          raise TemplateSyntaxError, "'%s' takes at least one argument (path to a view)" % bits[0]
      args = []
      kwargs = {}
      if len(bits) > 2:
          for arg in bits[2].split(','):
              if '=' in arg:
 
</s> remove         raise TemplateSyntaxError, "'firstof' statement requires at least one argument"
 </s> add         raise TemplateSyntaxError("'firstof' statement requires at least one"
                                  " argument") </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") </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, "'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, "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()))
        raise TemplateSyntaxError("'%s' takes at least one argument"
                                  " (path to a view)" % bits[0])
      The URL will look like ``/clients/client/123/``.
      """
      bits = token.contents.split(' ', 2)
      if len(bits) < 2:
        raise TemplateSyntaxError("'%s' takes at least one argument"
                                  " (path to a view)" % bits[0])
      args = []
      kwargs = {}
      if len(bits) > 2:
          for arg in bits[2].split(','):
              if '=' in arg:
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