Update all urlpatterns to be compatible with modern Django.

Review Request #8679 — Created Jan. 29, 2017 and submitted

Information

Djblets
release-0.10.x
6496987...

Reviewers

Older versions of Django (including 1.6) provided a patterns() method
to normalize a list of URL patterns, which included url() entries
and tuples. Modern versions simplify all this, requiring the use of
url(), and removed patterns().

This change updates all URL patterns in Djblets to use url() and lists,
providing compatibility with Django 1.6 and higher.

Unit tests pass under Django 1.6. URL-related operations are no longer
failing under Django 1.10 (at least with the tests I've been able to run
so far).

reviewbot
  1. Tool: Pyflakes
    Processed Files:
        djblets/extensions/urls.py
        djblets/integrations/urls.py
        djblets/extensions/manager.py
        djblets/urls/tests.py
        djblets/webapi/resources/base.py
        djblets/urls/root.py
        djblets/testing/urls.py
        djblets/extensions/tests.py
        djblets/extensions/test/urls.py
        djblets/log/urls.py
        djblets/extensions/resources.py
        djblets/feedview/test_urls.py
        djblets/urls/resolvers.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        djblets/extensions/urls.py
        djblets/integrations/urls.py
        djblets/extensions/manager.py
        djblets/urls/tests.py
        djblets/webapi/resources/base.py
        djblets/urls/root.py
        djblets/testing/urls.py
        djblets/extensions/tests.py
        djblets/extensions/test/urls.py
        djblets/log/urls.py
        djblets/extensions/resources.py
        djblets/feedview/test_urls.py
        djblets/urls/resolvers.py
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-0.10.x (fe0599f)