diff --git a/libs/colorama/ansitowin32.py b/libs/colorama/ansitowin32.py index ea0a6c15f..09e2cc23d 100644 --- a/libs/colorama/ansitowin32.py +++ b/libs/colorama/ansitowin32.py @@ -40,7 +40,7 @@ class AnsiToWin32(object): sequences from the text, and if outputting to a tty, will convert them into win32 function calls. ''' - ANSI_RE = re.compile('\033\[((?:\d|;)*)([a-zA-Z])') + ANSI_RE = re.compile(r'\033\[((?:\d|;)*)([a-zA-Z])') def __init__(self, wrapped, convert=None, strip=None, autoreset=False): # The wrapped stream (normally sys.stdout or sys.stderr) diff --git a/runner/sensei.py b/runner/sensei.py index 4a8d5cd96..05cbe75f0 100644 --- a/runner/sensei.py +++ b/runner/sensei.py @@ -60,7 +60,7 @@ def sortFailures(self, testClassName): table = list() for test, err in self.failures: if helper.cls_name(test) == testClassName: - m = re.search("(?<= line )\d+" ,err) + m = re.search(r"(?<= line )\d+" ,err) if m: tup = (int(m.group(0)), test, err) table.append(tup) @@ -146,7 +146,7 @@ def scrapeInterestingStackDump(self, err): if m and m.group(0): stack_text += '\n' + line - m = re.search("^ \w(\w)+.*$",line) + m = re.search(r"^ \w(\w)+.*$",line) if m and m.group(0): stack_text += sep + line