      decorated.reverse()
      return [item[1] for item in decorated]
  
  def first(value):
      "Returns the first item in a list"
      try:
          return value[0]
      except IndexError:
          return u''
  
 
</s> remove     "Returns a random item from the list"
 </s> add     """Returns a random item from the list.""" </s> remove     "Returns a boolean of whether the value's length is the argument"
 </s> add     """Returns a boolean of whether the value's length is the argument.""" </s> remove     "Joins a list with a string, like Python's ``str.join(list)``"
 </s> add     """Joins a list with a string, like Python's ``str.join(list)``.""" </s> remove     "Returns the length of the value - useful for lists"
 </s> add     """Returns the length of the value - useful for lists.""" </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.
    """Returns the first item in a list."""
      decorated.reverse()
      return [item[1] for item in decorated]
  
  def first(value):
    """Returns the first item in a list."""
      try:
          return value[0]
      except IndexError:
          return u''
  
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/defaultfilters.py