From 8119b679eb85cdc0ae3d321e54d06dd0200a1e82 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Fri, 16 Sep 2016 12:15:00 -0400 Subject: [PATCH] Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6. http://bugs.python.org/issue27364 --- django/contrib/admindocs/urls.py | 18 +++++++++--------- django/contrib/admindocs/views.py | 2 +- django/contrib/auth/password_validation.py | 2 +- .../contrib/humanize/templatetags/humanize.py | 2 +- django/core/checks/urls.py | 2 +- django/core/validators.py | 16 ++++++++-------- django/db/backends/base/operations.py | 2 +- django/db/backends/sqlite3/introspection.py | 6 +++--- django/db/migrations/writer.py | 2 +- django/template/base.py | 2 +- django/template/defaultfilters.py | 2 +- django/template/defaulttags.py | 2 +- django/test/client.py | 2 +- django/test/html.py | 2 +- django/utils/html.py | 2 +- django/utils/regex_helper.py | 4 ++-- django/utils/text.py | 8 ++++---- django/utils/translation/__init__.py | 2 +- django/views/debug.py | 2 +- tests/admin_docs/tests.py | 4 ++-- tests/admin_scripts/tests.py | 6 +++--- tests/admin_views/tests.py | 6 +++--- tests/admin_widgets/tests.py | 4 ++-- tests/auth_tests/test_models.py | 4 ++-- tests/expressions/tests.py | 4 ++-- tests/field_deconstruction/tests.py | 4 ++-- .../field_tests/test_filepathfield.py | 4 ++-- .../forms_tests/field_tests/test_regexfield.py | 6 +++--- .../field_tests/test_splitdatetimefield.py | 4 ++-- tests/forms_tests/tests/test_forms.py | 4 ++-- tests/gis_tests/gdal_tests/test_raster.py | 2 +- tests/gis_tests/test_spatialrefsys.py | 2 +- tests/i18n/test_extraction.py | 4 ++-- tests/i18n/tests.py | 2 +- tests/lookup/tests.py | 2 +- tests/migrations/test_executor.py | 4 ++-- tests/migrations/test_graph.py | 2 +- tests/migrations/test_loader.py | 2 +- tests/model_forms/models.py | 2 +- .../syntax_tests/test_if_equal.py | 2 +- tests/utils_tests/test_http.py | 6 +++--- tests/utils_tests/test_jslex.py | 4 ++-- 42 files changed, 82 insertions(+), 82 deletions(-) diff --git a/django/contrib/admindocs/urls.py b/django/contrib/admindocs/urls.py index e0b2259ef9..bfc9648e83 100644 --- a/django/contrib/admindocs/urls.py +++ b/django/contrib/admindocs/urls.py @@ -2,31 +2,31 @@ from django.conf.urls import url from django.contrib.admindocs import views urlpatterns = [ - url('^$', + url(r'^$', views.BaseAdminDocsView.as_view(template_name='admin_doc/index.html'), name='django-admindocs-docroot'), - url('^bookmarklets/$', + url(r'^bookmarklets/$', views.BookmarkletsView.as_view(), name='django-admindocs-bookmarklets'), - url('^tags/$', + url(r'^tags/$', views.TemplateTagIndexView.as_view(), name='django-admindocs-tags'), - url('^filters/$', + url(r'^filters/$', views.TemplateFilterIndexView.as_view(), name='django-admindocs-filters'), - url('^views/$', + url(r'^views/$', views.ViewIndexView.as_view(), name='django-admindocs-views-index'), - url('^views/(?P[^/]+)/$', + url(r'^views/(?P[^/]+)/$', views.ViewDetailView.as_view(), name='django-admindocs-views-detail'), - url('^models/$', + url(r'^models/$', views.ModelIndexView.as_view(), name='django-admindocs-models-index'), - url('^models/(?P[^\.]+)\.(?P[^/]+)/$', + url(r'^models/(?P[^\.]+)\.(?P[^/]+)/$', views.ModelDetailView.as_view(), name='django-admindocs-models-detail'), - url('^templates/(?P