              reversed = ' reversed'
          else:
              reversed = ''
          return "<For Node: for %s in %s, tail_len: %d%s>" % \
              (', '.join( self.loopvars ), self.sequence, len(self.nodelist_loop), reversed)
  
      def __iter__(self):
          for node in self.nodelist_loop:
              yield node
  
 
</s> remove         raise TemplateSyntaxError, "'for' statements should use the format 'for x in y': %s" % token.contents
 </s> add         raise TemplateSyntaxError("'for' statements should use the format"
                                  " 'for x in y': %s" % token.contents) </s> remove                 # If there are multiple loop variables, unpack the item into them.
 </s> add                 # If there are multiple loop variables, unpack the item into
                # them. </s> remove             raise TemplateSyntaxError, "Second (optional) argument to %s tag must be 'parsed'" % bits[0]
 </s> add             raise TemplateSyntaxError("Second (optional) argument to %s tag"
                                      " must be 'parsed'" % bits[0]) </s> remove             raise TemplateSyntaxError, "'for' tag received an invalid argument: %s" % token.contents
 </s> add             raise TemplateSyntaxError("'for' tag received an invalid argument:"
                                      " %s" % token.contents) </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)
            (', '.join(self.loopvars), self.sequence, len(self.nodelist_loop),
             reversed)
              reversed = ' reversed'
          else:
              reversed = ''
          return "<For Node: for %s in %s, tail_len: %d%s>" % \
            (', '.join(self.loopvars), self.sequence, len(self.nodelist_loop),
             reversed)
  
      def __iter__(self):
          for node in self.nodelist_loop:
              yield node
  
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