          """
          encoded_filename = force_text(filename_parm['filename*'])
          try:
              charset, lang, filename = encoded_filename.split('\'', 2)
              filename = urlparse.unquote(filename)
          except (ValueError, LookupError):
              filename = force_text(filename_parm['filename'])
          return filename
 
</s> remove             field.run_validation(u'slug-99-\u0420')
 </s> add             field.run_validation('slug-99-\u0420') </s> remove             key = six.text_type(key)
 </s> add             key = str(key) </s> remove             six.reraise(type(exc), exc, sys.exc_info()[2])
 </s> add             raise exc.with_traceback(sys.exc_info()[2]) </s> remove         if isinstance(ret, six.text_type):
 </s> add         if isinstance(ret, str): </s> remove         super(SlugRelatedField, self).__init__(**kwargs)
 </s> add         super().__init__(**kwargs)
            filename = parse.unquote(filename)
          """
          encoded_filename = force_text(filename_parm['filename*'])
          try:
              charset, lang, filename = encoded_filename.split('\'', 2)
            filename = parse.unquote(filename)
          except (ValueError, LookupError):
              filename = force_text(filename_parm['filename'])
          return filename
keep keep keep keep replace keep keep keep
 Dropped Python 2 compatibility. (#6615)

Thanks to Jon Dufresne (@jdufresne) for review.

Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
Co-authored-by: Rizwan Mansuri <Rizwan@webbyfox.com> 
rest_framework/parsers.py