  from __future__ import unicode_literals
  
  from django.utils.html import escape
  from django.utils.safestring import mark_safe
  from rest_framework.compat import apply_markdown
  import re
  
  
  def _remove_trailing_string(content, trailing):
      """
 
</s> remove     try:
        content = content.decode('utf-8')
    except (AttributeError, UnicodeEncodeError):
        pass  # the string should keep the default 'ascii' encoding in
              # Python 2.x or stay a unicode string in Python 3.x
 </s> add  </s> remove     description = _remove_leading_indent(description)
 </s> add     description = _remove_leading_indent(smart_text(description))
from rest_framework.compat import apply_markdown, smart_text
  from __future__ import unicode_literals
  
  from django.utils.html import escape
  from django.utils.safestring import mark_safe
from rest_framework.compat import apply_markdown, smart_text
  import re
  
  
  def _remove_trailing_string(content, trailing):
      """
keep keep keep keep replace keep keep keep keep keep
 Refactored get_view_description, moved appropriate tests to test_description.py 
rest_framework/utils/formatting.py