      from django.utils.text import phone2numeric
      return phone2numeric(value)
  
  def pprint(value):
      "A wrapper around pprint.pprint -- for debugging, really"
      from pprint import pformat
      try:
          return pformat(value)
      except Exception, e:
          return u"Error in formatting: %s" % force_unicode(e, errors="replace")
 
</s> remove     "Takes a phone number and converts it in to its numerical equivalent"
 </s> add     """Takes a phone number and converts it in to its numerical equivalent.""" </s> remove             raise TemplateSyntaxError, "'%s' is not a valid tag library: %s" % (taglib, e)
 </s> add             raise TemplateSyntaxError("'%s' is not a valid tag library: %s" %
                                      (taglib, e)) </s> remove     except ValueError: # invalid literal for int()
 </s> add     except ValueError: # Invalid literal for int(). </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     "Escapes a value for use in a URL"
 </s> add     """Escapes a value for use in a URL."""
    """A wrapper around pprint.pprint -- for debugging, really."""
      from django.utils.text import phone2numeric
      return phone2numeric(value)
  
  def pprint(value):
    """A wrapper around pprint.pprint -- for debugging, really."""
      from pprint import pformat
      try:
          return pformat(value)
      except Exception, e:
          return u"Error in formatting: %s" % force_unicode(e, errors="replace")
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