sysdig-sdk-python
sysdig-sdk-python copied to clipboard
fix: use raw string for dashboard 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 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 = """