      except IndexError:
          return u''
  
  def join(value, arg):
      "Joins a list with a string, like Python's ``str.join(list)``"
      try:
          return arg.join(map(force_unicode, value))
      except AttributeError: # fail silently but nicely
          return value
  
 
</s> remove     "Returns the length of the value - useful for lists"
 </s> add     """Returns the length of the value - useful for lists.""" </s> remove     "Returns the first item in a list"
 </s> add     """Returns the first item in a list.""" </s> remove     except ValueError: # unpack list of wrong size (no "maybe" value provided)
 </s> add     except ValueError:
        # Unpack list of wrong size (no "maybe" value provided). </s> remove     except ValueError: # invalid literal for int()
 </s> add     except ValueError: # Invalid literal for int(). </s> remove     Returns the value turned into a list. For an integer, it's a list of
    digits. For a string, it's a list of characters.
 </s> add     Returns the value turned into a list.

    For an integer, it's a list of digits.
    For a string, it's a list of characters.
    """Joins a list with a string, like Python's ``str.join(list)``."""
      except IndexError:
          return u''
  
  def join(value, arg):
    """Joins a list with a string, like Python's ``str.join(list)``."""
      try:
          return arg.join(map(force_unicode, value))
      except AttributeError: # fail silently but nicely
          return value
  
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