Use raw string to avoid regex warning (#1552)

Followup to #1550
This commit is contained in:
Sam Clegg
2025-04-15 16:51:03 -07:00
committed by GitHub
parent c69d433d85
commit 29cee8f46f

View File

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