          if 'forloop' in context and context['forloop']['first']:
              self._last_seen = None
          try:
              if self._varlist:
                  # Consider multiple parameters.
                  # This automatically behaves like a OR evaluation of the multiple variables.
                  compare_to = [var.resolve(context) for var in self._varlist]
              else:
                  compare_to = self.nodelist.render(context)
          except VariableDoesNotExist:
              compare_to = None
 
</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         # apply filters
 </s> add         # Apply filters. </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         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         if obj_list == None: # target_var wasn't found in context; fail silently
 </s> add         if obj_list == None:
            # target variable wasn't found in context; fail silently.
                # Consider multiple parameters.  This automatically behaves
                # like an OR evaluation of the multiple variables.
          if 'forloop' in context and context['forloop']['first']:
              self._last_seen = None
          try:
              if self._varlist:
                # Consider multiple parameters.  This automatically behaves
                # like an OR evaluation of the multiple variables.
                # Consider multiple parameters.  This automatically behaves
                # like an OR evaluation of the multiple variables.
                  compare_to = [var.resolve(context) for var in self._varlist]
              else:
                  compare_to = self.nodelist.render(context)
          except VariableDoesNotExist:
              compare_to = None
keep keep keep keep 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