From 29cee8f46fdf0f5b99bc91b9a4b783344dc3adf2 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Tue, 15 Apr 2025 16:51:03 -0700 Subject: [PATCH] Use raw string to avoid regex warning (#1552) Followup to #1550 --- scripts/update_bazel_workspace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update_bazel_workspace.py b/scripts/update_bazel_workspace.py index 9997f0f..637c355 100755 --- a/scripts/update_bazel_workspace.py +++ b/scripts/update_bazel_workspace.py @@ -64,7 +64,7 @@ def update_module_version(version): with open(BAZEL_MODULE_FILE, 'r') as f: content = f.read() - pattern = '(module\(\s*name = "emsdk",\s*version = )"\d+.\d+.\d+",\n\)' + pattern = r'(module\(\s*name = "emsdk",\s*version = )"\d+.\d+.\d+",\n\)' # Verify that the pattern exists in the input since re.sub will # will succeed either way. assert re.search(pattern, content)