          result = {}
          errors = OrderedDict()
  
          for key, value in data.items():
              key = six.text_type(key)
  
              try:
                  result[key] = self.child.run_validation(value)
              except ValidationError as e:
                  errors[key] = e.detail
 
</s> remove             for name, value in six.iteritems(headers):
 </s> add             for name, value in headers.items(): </s> remove             path = urlparse.urlparse(link.url).path
 </s> add             path = parse.urlparse(link.url).path </s> remove             field.run_validation(u'slug-99-\u0420')
 </s> add             field.run_validation('slug-99-\u0420') </s> remove             filename = urlparse.unquote(filename)
 </s> add             filename = parse.unquote(filename) </s> remove         state = super(Response, self).__getstate__()
 </s> add         state = super().__getstate__()
            key = str(key)
          result = {}
          errors = OrderedDict()
  
          for key, value in data.items():
            key = str(key)
  
              try:
                  result[key] = self.child.run_validation(value)
              except ValidationError as e:
                  errors[key] = e.detail
keep keep keep keep replace keep keep 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/fields.py