  """Functions for use in URLsconfs."""
  from importlib import import_module
  
  from django.core.exceptions import ImproperlyConfigured
  
  from .resolvers import (
      LocalePrefixPattern, RegexPattern, RoutePattern, URLPattern, URLResolver,
 
</s> remove     from django.conf.urls import url
 </s> add     from django.urls import path </s> remove from django.conf.urls import url
 </s> add  </s> remove         url(r'^publishers/$', PublisherList.as_view()),
 </s> add         path('publishers/', PublisherList.as_view()), </s> remove         url(r'^articles/([0-9]{4})/$', views.year_archive, name='news-year-archive'),
 </s> add         path('articles/<int:year>/', views.year_archive, name='news-year-archive'), </s> remove            url(r'^static/(?P<path>.*)$', views.serve),
 </s> add            re_path(r'^static/(?P<path>.*)$', views.serve),
from functools import partial
  """Functions for use in URLsconfs."""
from functools import partial
  from importlib import import_module
  
  from django.core.exceptions import ImproperlyConfigured
  
  from .resolvers import (
      LocalePrefixPattern, RegexPattern, RoutePattern, URLPattern, URLResolver,
add keep keep keep keep keep keep
 Fixed #28593 -- Added a simplified URL routing syntax per DEP 0201.

Thanks Aymeric Augustin for shepherding the DEP and patch review.
Thanks Marten Kenbeek and Tim Graham for contributing to the code.
Thanks Tom Christie, Shai Berger, and Tim Graham for the docs. 
django/urls/conf.py