Skip to content

Use raw regex strings in Python tools#3061

Open
Old-Ding wants to merge 1 commit into
raspberrypi:developfrom
Old-Ding:codex/raw-regex-python-tools
Open

Use raw regex strings in Python tools#3061
Old-Ding wants to merge 1 commit into
raspberrypi:developfrom
Old-Ding:codex/raw-regex-python-tools

Conversation

@Old-Ding

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

Copy link
Copy Markdown

Summary

  • use raw regex strings in Python 3 tools where the regex value is unchanged
  • remove invalid escape sequence SyntaxWarnings from SDK-owned Python files outside lib/

Duplicate check

  • No open PR or issue found for SyntaxWarning.
  • No open PR or issue found for invalid escape.
  • No open PR or issue found for extract_configs.

Validation

  • python -W error::SyntaxWarning -m py_compile .github/workflows/scripts/generate_multi_gcc_workflow.py tools/compare_build_systems.py tools/copro_dis.py tools/extract_configs.py
  • repository SDK-owned Python warning-as-error compile scan excluding lib/ reports TOTAL 0
  • git diff --check
  • git ls-files --eol .github/workflows/scripts/generate_multi_gcc_workflow.py tools/compare_build_systems.py tools/copro_dis.py tools/extract_configs.py

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown

Please do not submit against master, use develop instead

@Old-Ding Old-Ding changed the base branch from master to develop July 5, 2026 16:36
Prefix regex literals with r/rf where the pattern value is unchanged so Python does not emit invalid escape sequence SyntaxWarnings.

Generated-by: OpenAI Codex
Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
@Old-Ding Old-Ding force-pushed the codex/raw-regex-python-tools branch from ff8fd6a to debe000 Compare July 5, 2026 16:37
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.

1 participant