          self.exception = exception
          self.content_type = content_type
  
          if headers:
              for name, value in six.iteritems(headers):
                  self[name] = value
  
      @property
      def rendered_content(self):
          renderer = getattr(self, 'accepted_renderer', None)
 
</s> remove             content_type = "{0}; charset={1}".format(media_type, charset)
 </s> add             content_type = "{}; charset={}".format(media_type, charset) </s> remove             content_type = "{0}; charset={1}".format(
 </s> add             content_type = "{}; charset={}".format( </s> remove                 path = urlparse.urlparse(link.url).path
 </s> add                 path = parse.urlparse(link.url).path </s> remove             path = urlparse.urlparse(link.url).path
 </s> add             path = parse.urlparse(link.url).path </s> remove             key = six.text_type(key)
 </s> add             key = str(key)
            for name, value in headers.items():
          self.exception = exception
          self.content_type = content_type
  
          if headers:
            for name, value in headers.items():
                  self[name] = value
  
      @property
      def rendered_content(self):
          renderer = getattr(self, 'accepted_renderer', None)
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/response.py