Browse Source

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
tags/2.26.0
Andreas Jaeger 1 month ago
parent
commit
9a145cf0d0
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      diskimage_builder/lib/outfilter.py

+ 1
- 1
diskimage_builder/lib/outfilter.py View File

@@ -26,7 +26,7 @@ import datetime
26 26
 import re
27 27
 import sys
28 28
 
29
-IGNORE_LINES = re.compile('(set \+o|xtrace)')
29
+IGNORE_LINES = re.compile(r'(set \+o|xtrace)')
30 30
 
31 31
 
32 32
 def get_options():

Loading…
Cancel
Save