  
  urlpatterns = patterns(
      '',
      url(r'^$', APIView.as_view(authentication_classes=(TokenAuthentication,))),
  )
  
  
  class MyMiddleware(object):
  
      def process_response(self, request, response):
 
</s> remove urlpatterns = patterns(
    '',
 </s> add urlpatterns = [ </s> remove urlpatterns = patterns(
    '',
 </s> add urlpatterns = [ </s> remove urlpatterns = patterns(
    '',
 </s> add urlpatterns = [ </s> remove     urlpatterns = patterns(
        '',
 </s> add     urlpatterns = [ </s> remove urlpatterns = patterns(
    '',
 </s> add urlpatterns = [
]
  
  urlpatterns = patterns(
      '',
      url(r'^$', APIView.as_view(authentication_classes=(TokenAuthentication,))),
]
  
  
  class MyMiddleware(object):
  
      def process_response(self, request, response):
keep keep keep keep replace keep keep keep keep keep
 Remove `django.conf.urls.pattern` as it'll be removed in Django 2.0 
tests/test_middleware.py