From 022aebc55049075e0852dc7b0ce01ea085fe5dcb Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 14 Nov 2017 19:05:20 -0500 Subject: [PATCH] [2.0.x] Fixed invalid escape sequence warning in check_framework test. Backport of 532a4f22ad94db320cb0fd66f4c7ee57d17ac65a from master --- .../urls/path_compatibility/contains_re_named_group.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/check_framework/urls/path_compatibility/contains_re_named_group.py b/tests/check_framework/urls/path_compatibility/contains_re_named_group.py index 76c4939f3fe..a99c79354e8 100644 --- a/tests/check_framework/urls/path_compatibility/contains_re_named_group.py +++ b/tests/check_framework/urls/path_compatibility/contains_re_named_group.py @@ -1,5 +1,5 @@ from django.urls import path urlpatterns = [ - path('(?P\d+)', lambda x: x), + path(r'(?P\d+)', lambda x: x), ]