Update all urlpatterns to be compatible with modern Django.
Review Request #8679 — Created Jan. 29, 2017 and submitted
Older versions of Django (including 1.6) provided a
patterns()method
to normalize a list of URL patterns, which includedurl()entries
and tuples. Modern versions simplify all this, requiring the use of
url(), and removedpatterns().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).
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