Skip to content

Commit

Permalink
Fix python 3.12 SyntaxWarning: invalid escape sequence '\s'
Browse files Browse the repository at this point in the history
Signed-off-by: Gong Su <[email protected]>
  • Loading branch information
gongsu832 committed Oct 15, 2024
1 parent 2e05aa3 commit 9fb2d38
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .buildbot/jenkins-build-llvm-project.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def setup_per_pr_llvm_project(image_type, exp):
):
if "stream" in line:
# Keep track of the latest successful image layer
m = re.match("^\s*---> ([0-9a-f]+)$", line["stream"])
m = re.match(r"^\s*---> ([0-9a-f]+)$", line["stream"])
if m:
layer_sha256 = m.group(1)
print(line["stream"], end="", flush=True)
Expand Down
2 changes: 1 addition & 1 deletion .buildbot/jenkins-build-onnx-mlir.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def build_per_pr_onnx_mlir(image_type, exp):
):
if "stream" in line:
# Keep track of the latest successful image layer
m = re.match("^\s*---> ([0-9a-f]+)$", line["stream"])
m = re.match(r"^\s*---> ([0-9a-f]+)$", line["stream"])
if m:
layer_sha256 = m.group(1)
print(line["stream"], end="", flush=True)
Expand Down
2 changes: 1 addition & 1 deletion .buildbot/jenkins-watch-llvm-project.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def build_watch_image(repo, commit, dockerfile, base_image, image_repo, image_ta
):
if "stream" in line:
# Keep track of the latest successful image layer
m = re.match("^\s*---> ([0-9a-f]+)$", line["stream"])
m = re.match(r"^\s*---> ([0-9a-f]+)$", line["stream"])
if m:
layer_sha256 = m.group(1)
print(line["stream"], end="", flush=True)
Expand Down

0 comments on commit 9fb2d38

Please sign in to comment.