Skip to content

Use raw regex string in pre-doxygen script - #2736

Open
Old-Ding wants to merge 1 commit into
Azure:mainfrom
Old-Ding:codex/pre-doxygen-raw-regex
Open

Use raw regex string in pre-doxygen script#2736
Old-Ding wants to merge 1 commit into
Azure:mainfrom
Old-Ding:codex/pre-doxygen-raw-regex

Conversation

@Old-Ding

@Old-Ding Old-Ding commented Jul 5, 2026

Copy link
Copy Markdown

Summary

  • use a raw string literal for the #define regex in .github/scripts/pre_doxygen.py
  • remove the invalid escape sequence SyntaxWarning on newer Python versions without changing the regex value

Duplicate check

  • No open PR or issue found for pre_doxygen.
  • No open PR or issue found for SyntaxWarning.

Validation

  • python -W error::SyntaxWarning -m py_compile .github/scripts/pre_doxygen.py
  • repository Python warning-as-error compile scan reports TOTAL 0
  • git diff --check
  • git ls-files --eol .github/scripts/pre_doxygen.py

Prefix the #define matching regex with r so newer Python versions do not emit an invalid escape sequence SyntaxWarning.

Generated-by: OpenAI Codex
Signed-off-by: aineoae86-sys <ai.neo.ae86@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants