[lld] Fix invalid Python escape sequences (#94033)

This commit is contained in:
Eisuke Kawashima 2024-08-31 23:37:49 +09:00 committed by GitHub
parent 1061c6da53
commit 4514c381f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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__)

View File

@ -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