sysdig-sdk-python icon indicating copy to clipboard operation
sysdig-sdk-python copied to clipboard

fix: use raw string for dashboard scope grammar

Open fuster92 opened this issue 3 months ago • 0 comments

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 = """

fuster92 avatar Oct 16 '25 10:10 fuster92