From dd3dcf818f6a0bc2c7906fb96a9fe33e9e8a88f3 Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Sat, 29 Dec 2018 04:46:55 +0000 Subject: [PATCH] Mark a regex pattern as a raw string Signed-off-by: Niels Thykier --- britney2/policies/autopkgtest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/britney2/policies/autopkgtest.py b/britney2/policies/autopkgtest.py index defc9d0..0d142ee 100644 --- a/britney2/policies/autopkgtest.py +++ b/britney2/policies/autopkgtest.py @@ -529,7 +529,7 @@ class AutopkgtestPolicy(BasePolicy): # serves no purpose. Just check some key packages which actually use # gcc during the test, and libreoffice as an example for a libgcc user. if src.startswith('gcc-'): - if re.match('gcc-\d$', src): + if re.match(r'gcc-\d$', src): # add gcc's own tests, if it has any srcinfo = source_suite.sources[src] if 'autopkgtest' in srcinfo.testsuite: