          self.data = data
          self.files = files
  
  
  class BaseParser(object):
      """
      All parsers should extend `BaseParser`, specifying a `media_type`
      attribute, and overriding the `.parse()` method.
      """
      media_type = None
 
</s> remove class BaseRenderer(object):
 </s> add class BaseRenderer: </s> remove class DataAndFiles(object):
 </s> add class DataAndFiles: </s> remove         context = super(AdminRenderer, self).get_context(
 </s> add         context = super().get_context( </s> remove         class MockQueryset(object):
 </s> add         class MockQueryset: </s> remove             content_type = "{0}; charset={1}".format(media_type, charset)
 </s> add             content_type = "{}; charset={}".format(media_type, charset)
class BaseParser:
          self.data = data
          self.files = files
  
  
class BaseParser:
      """
      All parsers should extend `BaseParser`, specifying a `media_type`
      attribute, and overriding the `.parse()` method.
      """
      media_type = 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/parsers.py