Skip to content

Use raw regex string in memory map analysis#417

Merged
EugenioCollado merged 1 commit into
eProsima:masterfrom
Old-Ding:codex/memory-map-raw-regex
Jul 6, 2026
Merged

Use raw regex string in memory map analysis#417
EugenioCollado merged 1 commit into
eProsima:masterfrom
Old-Ding:codex/memory-map-raw-regex

Conversation

@Old-Ding

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

Copy link
Copy Markdown
Contributor

Summary

  • use a raw string literal for the memory map parser regex
  • remove the invalid escape sequence SyntaxWarning on newer Python versions without changing the regex pattern

Duplicate check

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

Validation

  • python -W error::SyntaxWarning -m py_compile test/memory/memory_map/memory_map_analysis.py
  • repository Python warning-as-error compile scan reports TOTAL 0
  • ran test/memory/memory_map/memory_map_analysis.py on a small sample input and verified CSV output is generated
  • git diff --check
  • git ls-files --eol test/memory/memory_map/memory_map_analysis.py

Prefix the memory map regex with r so newer Python versions do not emit invalid escape sequence SyntaxWarnings while keeping the pattern unchanged.

Generated-by: OpenAI Codex
Signed-off-by: aineoae86-sys <ai.neo.ae86@gmail.com>

@EugenioCollado EugenioCollado left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mergify

mergify Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@EugenioCollado
EugenioCollado merged commit 7e430da into eProsima:master Jul 6, 2026
8 checks passed
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.

3 participants