          method_name = getattr(view, 'action', method.lower())
          method_docstring = getattr(view, method_name, None).__doc__
          if method_docstring:
              # An explicit docstring on the method or action.
              return self._get_description_section(view, method.lower(), formatting.dedent(smart_text(method_docstring)))
          else:
              return self._get_description_section(view, getattr(view, 'action', method.lower()),
                                                   view.get_view_description())
  
      def _get_description_section(self, view, header, description):
 
</s> remove     description = formatting.dedent(smart_text(description))
 </s> add     description = formatting.dedent(smart_str(description)) </s> remove         data = smart_text(data).strip()
 </s> add         data = smart_str(data).strip() </s> remove             self.fail('does_not_exist', slug_name=self.slug_field, value=smart_text(data))
 </s> add             self.fail('does_not_exist', slug_name=self.slug_field, value=smart_str(data)) </s> remove from django.utils.translation import ugettext_lazy as _
 </s> add from django.utils.translation import gettext_lazy as _ </s> remove from django.utils.encoding import smart_text
 </s> add from django.utils.encoding import smart_str
            return self._get_description_section(view, method.lower(), formatting.dedent(smart_str(method_docstring)))
          method_name = getattr(view, 'action', method.lower())
          method_docstring = getattr(view, method_name, None).__doc__
          if method_docstring:
              # An explicit docstring on the method or action.
            return self._get_description_section(view, method.lower(), formatting.dedent(smart_str(method_docstring)))
          else:
              return self._get_description_section(view, getattr(view, 'action', method.lower()),
                                                   view.get_view_description())
  
      def _get_description_section(self, view, header, description):
keep keep keep keep replace keep keep keep keep keep
 Fix Django 3.0 deprecations (#7074) 
rest_framework/schemas/inspectors.py