  from django.core.exceptions import PermissionDenied
  from django.http import Http404
  from django.views.decorators.csrf import csrf_exempt
  from rest_framework import status, exceptions
  from rest_framework.compat import smart_text, HttpResponseBase, View
  from rest_framework.request import Request
  from rest_framework.response import Response
  from rest_framework.settings import api_settings
  from rest_framework.utils import formatting
  
 
</s> remove from rest_framework.compat import force_text, OrderedDict
 </s> add from rest_framework.compat import OrderedDict </s> remove from rest_framework.compat import (
    SHORT_SEPARATORS, LONG_SEPARATORS, StringIO, smart_text, yaml
)
 </s> add from rest_framework.compat import SHORT_SEPARATORS, LONG_SEPARATORS, yaml
from rest_framework.compat import HttpResponseBase, View
  from django.core.exceptions import PermissionDenied
  from django.http import Http404
  from django.views.decorators.csrf import csrf_exempt
  from rest_framework import status, exceptions
from rest_framework.compat import HttpResponseBase, View
  from rest_framework.request import Request
  from rest_framework.response import Response
  from rest_framework.settings import api_settings
  from rest_framework.utils import formatting
  
keep keep keep keep replace keep keep keep keep keep
 Removed custom StringIO, force_text, smart_text compat 
rest_framework/views.py