Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools: Fix python string escape warnings for frr-reload.py #16526

Conversation

ton31337
Copy link
Member

@ton31337 ton31337 commented Aug 7, 2024

No description provided.

When using a regex (or anything that uses `\?` escapes) in python, raw
strings (`r"content"`) should be used so python doesn't consume the
escapes itself.  Otherwise we get either broken behavior and/or
`SyntaxWarning: invalid escape sequence '\['`

Fixes: 8916953 ("build: fix a few python string escape warnings")
Fixes: FRRouting#16522

Signed-off-by: Donatas Abraitis <[email protected]>
@ton31337 ton31337 force-pushed the fix/invalid_escape_chars_frr-reload.py branch from ceb5f86 to 850076b Compare August 8, 2024 05:46
@Jafaral Jafaral merged commit 000ad7f into FRRouting:master Aug 8, 2024
11 checks passed
@ton31337 ton31337 deleted the fix/invalid_escape_chars_frr-reload.py branch August 8, 2024 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants