  In addition Django's built in 403 and 404 exceptions are handled.
  (`django.http.Http404` and `django.core.exceptions.PermissionDenied`)
  """
  from __future__ import unicode_literals
  from django.utils import six
  from django.utils.encoding import force_text
  from django.utils.translation import ugettext_lazy as _, ungettext
  
  from rest_framework import status
  
 
</s> remove import math
 </s> add  </s> remove from django.core.exceptions import PermissionDenied
from django.http import Http404
 </s> add import inspect
import warnings
 </s> remove from django.db.models.fields import FieldDoesNotExist, Field as DjangoModelField
 </s> add 
import math

  In addition Django's built in 403 and 404 exceptions are handled.
  (`django.http.Http404` and `django.core.exceptions.PermissionDenied`)
  """
  from __future__ import unicode_literals
import math

  from django.utils import six
  from django.utils.encoding import force_text
  from django.utils.translation import ugettext_lazy as _, ungettext
  
  from rest_framework import status
  
keep keep keep add keep keep keep keep keep keep
 Cleanup import following PEP 8 style guide 
rest_framework/exceptions.py