mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-14 20:56:26 +00:00
[lld] Fix invalid Python escape sequences (#94033)
This commit is contained in:
parent
1061c6da53
commit
4514c381f3
@ -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__)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user