  from django.utils.translation import ugettext_lazy as _
  from django.utils.translation import ungettext
  
  from rest_framework import status
  from rest_framework.compat import unicode_to_repr
  from rest_framework.utils.serializer_helpers import ReturnDict, ReturnList
  
  
  def _get_error_details(data, default_code=None):
      """
 
</s> remove from rest_framework.compat import unicode_to_repr
 </s> add  </s> remove from django.utils import six
 </s> add  </s> remove # coding: utf-8
from __future__ import unicode_literals

 </s> add  </s> remove from __future__ import unicode_literals

 </s> add  </s> remove from django.utils import six
 </s> add 
  from django.utils.translation import ugettext_lazy as _
  from django.utils.translation import ungettext
  
  from rest_framework import status

  from rest_framework.utils.serializer_helpers import ReturnDict, ReturnList
  
  
  def _get_error_details(data, default_code=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/exceptions.py