  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, force_text
  import re
  
  
  def remove_trailing_string(content, trailing):
      """
      Strip trailing component `trailing` from `content` if it exists.
 
</s> remove from django.utils.safestring import SafeData, mark_safe
 </s> add  </s> remove from django.core.urlresolvers import reverse, NoReverseMatch
 </s> add  </s> remove from django.utils.encoding import iri_to_uri, force_text
 </s> add 
  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, force_text

  
  
  def remove_trailing_string(content, trailing):
      """
      Strip trailing component `trailing` from `content` if it exists.
keep keep keep keep replace keep keep keep keep keep
 Cleanup import following PEP 8 style guide 
rest_framework/utils/formatting.py