[lld] Fix invalid Python escape sequences (#94033)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user