Skip to content

Conversation

@fuster92
Copy link

Use raw string (r-string) prefix for the dashboard scope grammar
string to prevent invalid escape sequence warnings for - and .
patterns in the grammar.

This resolves SyntaxWarning issues in Python 3.13+. All existing tests pass.

python3.13/site-packages/sdcclient/monitor/dashboard_converters/_dashboard_scope.py:8: SyntaxWarning: invalid escape sequence '\-'
  _SCOPE_GRAMMAR = """

Use raw string (r-string) prefix for the dashboard scope grammar
string to prevent invalid escape sequence warnings for \- and \.
patterns in the regex.

This resolves SyntaxWarning issues in Python 3.13+ while maintaining
the same regex functionality. All existing tests pass.
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