  """
  from __future__ import unicode_literals
  import inspect
  
  from django.core.exceptions import PermissionDenied
  from django.http import Http404
  from django.utils.encoding import smart_text
  from django.views.decorators.csrf import csrf_exempt
 
</s> remove             response = exception_handler(exc)
 </s> add             context = self.get_renderer_context()
            response = self.settings.EXCEPTION_HANDLER(exc, context) </s> remove         exception_handler = self.settings.EXCEPTION_HANDLER

        if 'context' in inspect.getargspec(exception_handler).args:
            context = self.get_renderer_context()
            response = exception_handler(exc, context)
 </s> add         if len(inspect.getargspec(self.settings.EXCEPTION_HANDLER).args) == 1:
            warnings.warn(
                'The `exception_handler(exc)` call signature is deprecated. '
                'Use `exception_handler(exc, context) instead.',
                PendingDeprecationWarning
            )
            response = self.settings.EXCEPTION_HANDLER(exc)
import warnings
  """
  from __future__ import unicode_literals
  import inspect
import warnings
  
  from django.core.exceptions import PermissionDenied
  from django.http import Http404
  from django.utils.encoding import smart_text
  from django.views.decorators.csrf import csrf_exempt
keep keep add keep keep keep keep keep
 Add pending deprecation warning message 
rest_framework/views.py