Skip to content

Fix invalid escape sequence warnings in ssd.py#629

Open
stephenxs wants to merge 1 commit intosonic-net:masterfrom
stephenxs:fix-invaild-string
Open

Fix invalid escape sequence warnings in ssd.py#629
stephenxs wants to merge 1 commit intosonic-net:masterfrom
stephenxs:fix-invaild-string

Conversation

@stephenxs
Copy link
Collaborator

Description

Use raw string literals (r'...') for all regex patterns passed to _parse_re() to avoid SyntaxWarning for \s, \d etc. in non-raw strings.
Fixes tjpse pattern and all other _parse_re call sites.

Motivation and Context

How Has This Been Tested?

Additional Information (Optional)

@mssonicbld
Copy link
Collaborator

/azp run

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Mar 2, 2026

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: stephenxs / name: Stephen Sun (6728223)

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Use raw string literals (r'...') for all regex patterns passed to
_parse_re() to avoid SyntaxWarning for \s, \d etc. in non-raw strings.
Fixes Remaining_Life_Left pattern and all other _parse_re call sites.
@stephenxs stephenxs force-pushed the fix-invaild-string branch from 1e1fbb1 to 6728223 Compare March 2, 2026 07:00
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@stephenxs
Copy link
Collaborator Author

/easycla

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