Skip to content

Commit

Permalink
python 3.12 report warning on missing r (#41373)
Browse files Browse the repository at this point in the history
  • Loading branch information
weidongxu-microsoft authored Jul 31, 2024
1 parent 9cca837 commit 3afd633
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eng/automation/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def update_changelog_version(sdk_root: str, output_folder: str, current_version:
with open(changelog_file, "r") as fin:
changelog_str = fin.read()
logging.info("[CHANGELOG][Version] Update changelog latest version")
version_pattern = "^## (\d+\.\d+\.\d+(?:-[\w\d\.]+)?) \((?P<date>.*?)\)"
version_pattern = r"^## (\d+\.\d+\.\d+(?:-[\w\d\.]+)?) \((?P<date>.*?)\)"

changelog_str = re.sub(
pattern=version_pattern,
Expand Down

0 comments on commit 3afd633

Please sign in to comment.