From 9a145cf0d06390bd049faf5db082f1d4fd5821e7 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Thu, 8 Aug 2019 15:31:52 +0200 Subject: [PATCH] Stop regex warning python 3.6 warns about regexes like: DeprecationWarning: invalid escape sequence \+ I noticed that debugging a trove job and it really led me in the wrong way. Fix this with making it a raw string. Change-Id: I58ee1a49d62316c6c3f0588832c97f659f7e460b --- diskimage_builder/lib/outfilter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diskimage_builder/lib/outfilter.py b/diskimage_builder/lib/outfilter.py index 71c196d5..770742c2 100644 --- a/diskimage_builder/lib/outfilter.py +++ b/diskimage_builder/lib/outfilter.py @@ -26,7 +26,7 @@ import datetime import re import sys -IGNORE_LINES = re.compile('(set \+o|xtrace)') +IGNORE_LINES = re.compile(r'(set \+o|xtrace)') def get_options():