      be used to separate values; if a comma is used, the cycle values are 
      interpreted as literal strings.
      """
  
      # Note: This returns the exact same node on each {% cycle name %} call; that
      # is, the node object returned from {% cycle a b c as name %} and the one
      # returned from {% cycle name %} are the exact same object.  This shouldn't
      # cause problems (heh), but if it does, now you know.
      #
      # Ugly hack warning: this stuffs the named template dict into parser so
      # that names are only unique within each template (as opposed to using
      # a global variable, which would make cycle names have to be unique across
      # *all* templates.
 
</s> remove         # {% cycle foo %} case
 </s> add         # {% cycle foo %} case. </s> remove     people was not sorted by gender, you'd need to make sure it is sorted before
    using it, i.e.::
 </s> add     people was not sorted by gender, you'd need to make sure it is sorted
    before using it, i.e.:: </s> remove     ``if`` tags do not allow ``and`` and ``or`` clauses with the same
    tag, because the order of logic would be ambigous. For example,
    this is invalid::
 </s> add     ``if`` tags do not allow ``and`` and ``or`` clauses with the same tag,
    because the order of logic would be ambigous. For example, this is
    invalid:: </s> remove             raise TemplateSyntaxError("No named cycles in template: '%s' is not defined" % name)
 </s> add             raise TemplateSyntaxError("No named cycles in template."
                                      " '%s' is not defined" % name) </s> remove     2. If given a variable, check whether that variable has changed. For example, the
       following shows the date every time it changes, but only shows the hour if both
       the hour and the date have changed::
 </s> add     2. If given a variable, check whether that variable has changed.
       For example, the following shows the date every time it changes, but
       only shows the hour if both the hour and the date have changed::
    # Note: This returns the exact same node on each {% cycle name %} call;
    # that is, the node object returned from {% cycle a b c as name %} and the
    # one returned from {% cycle name %} are the exact same object.  This
    # shouldn't cause problems (heh), but if it does, now you know.
      be used to separate values; if a comma is used, the cycle values are 
      interpreted as literal strings.
      """
  
    # Note: This returns the exact same node on each {% cycle name %} call;
    # that is, the node object returned from {% cycle a b c as name %} and the
    # one returned from {% cycle name %} are the exact same object.  This
    # shouldn't cause problems (heh), but if it does, now you know.
    # Note: This returns the exact same node on each {% cycle name %} call;
    # that is, the node object returned from {% cycle a b c as name %} and the
    # one returned from {% cycle name %} are the exact same object.  This
    # shouldn't cause problems (heh), but if it does, now you know.
    # Note: This returns the exact same node on each {% cycle name %} call;
    # that is, the node object returned from {% cycle a b c as name %} and the
    # one returned from {% cycle name %} are the exact same object.  This
    # shouldn't cause problems (heh), but if it does, now you know.
    # Note: This returns the exact same node on each {% cycle name %} call;
    # that is, the node object returned from {% cycle a b c as name %} and the
    # one returned from {% cycle name %} are the exact same object.  This
    # shouldn't cause problems (heh), but if it does, now you know.
      #
      # Ugly hack warning: this stuffs the named template dict into parser so
      # that names are only unique within each template (as opposed to using
      # a global variable, which would make cycle names have to be unique across
      # *all* templates.
keep keep keep keep replace replace replace 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