diff options
Diffstat (limited to 'testing/web-platform/tests/annotation-model')
-rw-r--r-- | testing/web-platform/tests/annotation-model/tools/make_tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testing/web-platform/tests/annotation-model/tools/make_tests.py b/testing/web-platform/tests/annotation-model/tools/make_tests.py index 6890baa296..007db68ea8 100644 --- a/testing/web-platform/tests/annotation-model/tools/make_tests.py +++ b/testing/web-platform/tests/annotation-model/tools/make_tests.py @@ -38,7 +38,7 @@ for curdir, subdirList, fileList in os.walk(DEFDIR, topdown=True): except ValueError as e: print("parse of " + theFile + " failed: " + e[0]) else: - theFile = re.sub("\.\./", "", theFile) + theFile = re.sub(r"\.\./", "", theFile) defList.append(theFile) if (len(defList)): @@ -75,7 +75,7 @@ for curdir, subdirList, fileList in os.walk(TESTTREE, topdown=True): templateFile = autoTemplate suffix = ".html" - rfile = re.sub("\.\./", "", file) + rfile = re.sub(r"\.\./", "", file) # interesting pattern is {{TESTFILE}} tcopy = re.sub("{{TESTFILE}}", rfile, templateFile) @@ -88,7 +88,7 @@ for curdir, subdirList, fileList in os.walk(TESTTREE, topdown=True): tcopy = re.sub("{{TESTTITLE}}", title, tcopy) # target file is basename of theFile + '-manual.html' - target = re.sub("\.test",suffix, theFile) + target = re.sub(r"\.test",suffix, theFile) try: out = open(target, "w") |