From d4437af9735e06b99a9ef7074bf67fbd264a0aa7 Mon Sep 17 00:00:00 2001 From: Greg Noel Date: Sat, 5 Jun 2010 09:43:21 +0000 Subject: Oops, backslash must be done first, or backslashes from previous substitutions will be quoted. --- QMTest/TestSCons.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QMTest/TestSCons.py b/QMTest/TestSCons.py index d9f0bf2..5f2b958 100644 --- a/QMTest/TestSCons.py +++ b/QMTest/TestSCons.py @@ -141,7 +141,7 @@ file_expr = r"""File "[^"]*", line \d+, in [^\n]+ # re.escape escapes too much. def re_escape(str): - for c in '.[]()*+?\\': # Not an exhaustive list. + for c in '\\.[]()*+?': # Not an exhaustive list. str = str.replace(c, '\\' + c) return str -- cgit v0.12