  which allows mixin classes to be composed in interesting ways.
  """
  from django.http import Http404
  from rest_framework import status
  from rest_framework.response import Response
  
 
</s> remove import StringIO
 </s> add from rest_framework.compat import StringIO
 </s> remove from django.utils.encoding import smart_unicode, DjangoUnicodeDecodeError
 </s> add from django.utils.encoding import DjangoUnicodeDecodeError
try:
    from django.utils.encoding import smart_text
except ImportError:
    from django.utils.encoding import smart_unicode as smart_text </s> remove from django.utils.encoding import force_unicode
 </s> add try:
    from django.utils.encoding import force_text
except ImportError:
    from django.utils.encoding import force_unicode as force_text </s> remove from urlparse import urlsplit, urlunsplit
 </s> add try:
    from urllib.parse import urlsplit, urlunsplit
except ImportError:
    from urlparse import urlsplit, urlunsplit </s> remove from StringIO import StringIO
 </s> add from rest_framework.compat import StringIO
from __future__ import unicode_literals

  which allows mixin classes to be composed in interesting ways.
  """
from __future__ import unicode_literals

  from django.http import Http404
  from rest_framework import status
  from rest_framework.response import Response
  
keep add keep keep keep keep
 First passing test under p3k \o/ 
rest_framework/mixins.py