  # LOGIC           #
  ###################
  
  def default(value, arg):
      "If value is unavailable, use given default"
      return value or arg
  
  def default_if_none(value, arg):
      "If value is None, use given default"
      if value is None:
 
</s> remove     "If value is None, use given default"
 </s> add     """If value is None, use given default.""" </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     "Formats a date according to the given format"
 </s> add     """Formats a date according to the given format.""" </s> remove     "Formats a time according to the given format"
 </s> add     """Formats a time according to the given format.""" </s> remove     "Centers the value in a field of a given width"
 </s> add     """Centers the value in a field of a given width."""
    """If value is unavailable, use given default."""
  # LOGIC           #
  ###################
  
  def default(value, arg):
    """If value is unavailable, use given default."""
      return value or arg
  
  def default_if_none(value, arg):
      "If value is None, use given default"
      if value is None:
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