summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--QMTest/TestSCons.py2
1 files changed, 1 insertions, 1 deletions
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