  """
  import re
  from weakref import WeakKeyDictionary
  
  from django.utils.encoding import smart_text
  
  from rest_framework.settings import api_settings
  from rest_framework.utils import formatting
  
  
 
</s> remove from django.utils.encoding import smart_text
 </s> add from django.utils.encoding import smart_str </s> remove from django.utils.encoding import is_protected_type, smart_text
 </s> add from django.utils.encoding import is_protected_type, smart_str </s> remove from django.utils.encoding import smart_text, uri_to_iri
 </s> add from django.utils.encoding import smart_str, uri_to_iri </s> remove from django.utils.translation import ugettext_lazy as _
 </s> add from django.utils.translation import gettext_lazy as _ </s> remove         data = smart_text(data).strip()
 </s> add         data = smart_str(data).strip()
from django.utils.encoding import smart_str
  """
  import re
  from weakref import WeakKeyDictionary
  
from django.utils.encoding import smart_str
  
  from rest_framework.settings import api_settings
  from rest_framework.utils import formatting
  
  
keep keep keep keep replace keep keep keep keep keep
 Fix Django 3.0 deprecations (#7074) 
rest_framework/schemas/inspectors.py