  from rest_framework.settings import api_settings
  from rest_framework.utils import json
  
  
  class DataAndFiles(object):
      def __init__(self, data, files):
          self.data = data
          self.files = files
  
  
 
</s> remove class BaseParser(object):
 </s> add class BaseParser: </s> remove from django.utils.six.moves.urllib import parse as urlparse
 </s> add  </s> remove from rest_framework.compat import MutableMapping, unicode_to_repr
 </s> add from rest_framework.compat import MutableMapping </s> remove from __future__ import unicode_literals

 </s> add  </s> remove from rest_framework.compat import Mapping, postgres_fields, unicode_to_repr
 </s> add from rest_framework.compat import Mapping, postgres_fields
class DataAndFiles:
  from rest_framework.settings import api_settings
  from rest_framework.utils import json
  
  
class DataAndFiles:
      def __init__(self, data, files):
          self.data = data
          self.files = files
  
  
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