From e1ea7c465eb9e91c295ec11f9da4a2501aeda6b3 Mon Sep 17 00:00:00 2001 From: Greg Noel Date: Sat, 5 Jun 2010 08:38:21 +0000 Subject: The re_escape() function escapes too little. Blind fix for a Windows problem. --- QMTest/TestSCons.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QMTest/TestSCons.py b/QMTest/TestSCons.py index a5529f4..d9f0bf2 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