          self.filter_expr, self.nodelist = filter_expr, nodelist
  
      def render(self, context):
          output = self.nodelist.render(context)
          # apply filters
          context.update({'var': output})
          filtered = self.filter_expr.resolve(context)
          context.pop()
          return filtered
  
 
</s> remove         kwargs = dict([(smart_str(k,'ascii'), v.resolve(context)) for k, v in self.kwargs.items()])
 </s> add         kwargs = dict([(smart_str(k,'ascii'), v.resolve(context))
                       for k, v in self.kwargs.items()]) </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. </s> remove import sys
import re

try:
    reversed
except NameError:
    from django.utils.itercompat import reversed     # Python 2.3 fallback
 </s> add  </s> remove                 # Consider multiple parameters.
                # This automatically behaves like a OR evaluation of the multiple variables.
 </s> add                 # Consider multiple parameters.  This automatically behaves
                # like an OR evaluation of the multiple variables. </s> remove         raise TemplateSyntaxError, "%r expected format is 'value as name'" % bits[0]
 </s> add         raise TemplateSyntaxError("%r expected format is 'value as name'" %
                                  bits[0])
        # Apply filters.
          self.filter_expr, self.nodelist = filter_expr, nodelist
  
      def render(self, context):
          output = self.nodelist.render(context)
        # Apply filters.
          context.update({'var': output})
          filtered = self.filter_expr.resolve(context)
          context.pop()
          return filtered
  
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