diff --git a/lld/test/MachO/tools/validate-unwind-info.py b/lld/test/MachO/tools/validate-unwind-info.py index ac49f1ecb588..1cc82f827927 100755 --- a/lld/test/MachO/tools/validate-unwind-info.py +++ b/lld/test/MachO/tools/validate-unwind-info.py @@ -11,7 +11,7 @@ from pprint import pprint def main(): - hex = "[a-f\d]" + hex = r"[a-f\d]" hex8 = hex + "{8}" parser = argparse.ArgumentParser(description=__doc__) diff --git a/lld/utils/benchmark.py b/lld/utils/benchmark.py index a07d5ecc6941..7202e07ec438 100755 --- a/lld/utils/benchmark.py +++ b/lld/utils/benchmark.py @@ -51,7 +51,7 @@ class Bench: def getBenchmarks(): ret = [] for i in glob.glob("*/response*.txt"): - m = re.match("response-(.*)\.txt", os.path.basename(i)) + m = re.match(r"response-(.*)\.txt", os.path.basename(i)) variant = m.groups()[0] if m else None ret.append(Bench(os.path.dirname(i), variant)) return ret