      except AttributeError: # fail silently but nicely
          return value
  
  def length(value):
      "Returns the length of the value - useful for lists"
      return len(value)
  
  def length_is(value, arg):
      "Returns a boolean of whether the value's length is the argument"
      return len(value) == int(arg)
 
</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     "Returns a random item from the list"
 </s> add     """Returns a random item from the list.""" </s> remove     "Returns true if the value is devisible by the argument"
 </s> add     """Returns True if the value is devisible by 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 number of words"
 </s> add     """Returns the number of words."""
    """Returns the length of the value - useful for lists."""
      except AttributeError: # fail silently but nicely
          return value
  
  def length(value):
    """Returns the length of the value - useful for lists."""
      return len(value)
  
  def length_is(value, arg):
      "Returns a boolean of whether the value's length is the argument"
      return len(value) == int(arg)
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