old_contents: from django.conf.urls import patterns, url
  
  from news_sitemaps import registry
  
  
  urlpatterns = patterns('news_sitemaps.views',
      url(r'^index\.xml$',
          'index',
          {'sitemaps': registry},
          name='news_sitemaps_index'),
  
      url(r'^(?P<section>.+)\.xml$',
          'news_sitemap',
          {'sitemaps': registry},
          name='news_sitemaps_sitemap'),
  )
  
new_contents: from django.conf.urls import url
  
  from news_sitemaps import registry
  import news_sitemaps.views
  
  
  urlpatterns = [
      url(r'^index\.xml$',
          news_sitemaps.views.index,
          {'sitemaps': registry},
          name='news_sitemaps_index'),
  
      url(r'^(?P<section>.+)\.xml$',
          news_sitemaps.views.news_sitemap,
          {'sitemaps': registry},
          name='news_sitemaps_sitemap'),
  ]
  
subject: Fix DeprecationWarning by changing django.conf.urls.patterns() to list