summaryrefslogtreecommitdiffstats
path: root/tests/auto/qscriptvalue/testgen/gen.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qscriptvalue/testgen/gen.py')
-rwxr-xr-xtests/auto/qscriptvalue/testgen/gen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qscriptvalue/testgen/gen.py b/tests/auto/qscriptvalue/testgen/gen.py
index 7161e6b..b3c81b9 100755
--- a/tests/auto/qscriptvalue/testgen/gen.py
+++ b/tests/auto/qscriptvalue/testgen/gen.py
@@ -231,7 +231,7 @@ if __name__ == '__main__':
row_esc = escape(row)
out.append(qsvTempl.substitute(expr = row, expr_esc = row_esc))
- result = mainTempl.substitute(dump= "".join(out) \
+ result = mainTempl.safe_substitute(dump= "".join(out) \
, values = (11 * ' ' + '<< ').join(qsv) \
, count = len(qsv) \
, dataTags = (11 * ' ' + '<< ').join(map(lambda w: '"' + escape(w.replace('\n','')) + '"\n', qsv)))