Skip to content

Commit 92ccc6a

Browse files
committed
fix(lld/**.python): fix invalid escape sequences
1 parent f372bb4 commit 92ccc6a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lld/test/MachO/tools/validate-unwind-info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
def main():
14-
hex = "[a-f\d]"
14+
hex = r"[a-f\d]"
1515
hex8 = hex + "{8}"
1616

1717
parser = argparse.ArgumentParser(description=__doc__)

lld/utils/benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __str__(self):
5151
def getBenchmarks():
5252
ret = []
5353
for i in glob.glob("*/response*.txt"):
54-
m = re.match("response-(.*)\.txt", os.path.basename(i))
54+
m = re.match(r"response-(.*)\.txt", os.path.basename(i))
5555
variant = m.groups()[0] if m else None
5656
ret.append(Bench(os.path.dirname(i), variant))
5757
return ret

0 commit comments

Comments
 (0)