          pass
  
  
  urlpatterns = [
      url(r'^$', FooView.as_view())
  ]
  
  
  class CustomSchemaGenerator:
      SCHEMA = {"key": "value"}
 
</s> remove     url(r'^example/(?P<pk>[0-9]+)/$', dummy_view, name='example-detail'),
 </s> add     path('example/<int:pk>/', dummy_view, name='example-detail'), </s> remove         url(r'^$', view),
 </s> add         path('', view), </s> remove             url(r'^any-dash_underscore/?$', RestaurantAPIView.as_view()),
            url(r'^restaurants/branches/?$', BranchAPIView.as_view())
 </s> add             path('any-dash_underscore/', RestaurantAPIView.as_view()),
            path('restaurants/branches/', BranchAPIView.as_view()) </s> remove             url(r'^test', simple_fbv),
            url(r'^test/list/', simple_fbv),
 </s> add             path('test', simple_fbv),
            path('test/list/', simple_fbv), </s> remove             url(r'^test/list/', simple_fbv),
            url(r'^test/(?P<pk>\d+)/list/', simple_fbv),
 </s> add             path('test/list/', simple_fbv),
            path('test/<int:pk>/list/', simple_fbv),
    path('', FooView.as_view())
          pass
  
  
  urlpatterns = [
    path('', FooView.as_view())
  ]
  
  
  class CustomSchemaGenerator:
      SCHEMA = {"key": "value"}
keep keep keep keep replace keep keep keep keep keep
 Replace all url() calls with path() or re_path() (#7512)

* url() is deprecated in Django 3.1

* update given feedbacks on url() is deprecated in Django 3.1

* Fix test_urlpatterns.py to continue testing mixed re_path() and path()

* Fix one missed reference

Co-authored-by: sanjusci <sanju.sci9@gmail.com> 
tests/schemas/test_managementcommand.py