Skip to content

Commit 13d16b8

Browse files
committed
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 regex. This resolves SyntaxWarning issues in Python 3.13+ while maintaining the same regex functionality. All existing tests pass.
1 parent 3dd352e commit 13d16b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdcclient/monitor/dashboard_converters/_dashboard_scope.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def convert_scope_string_to_expression(scope=None):
55
if scope is None or not scope:
66
return [True, []]
77

8-
_SCOPE_GRAMMAR = """
8+
_SCOPE_GRAMMAR = r"""
99
@@grammar::CALC
1010
1111
start = expression $ ;

0 commit comments

Comments
 (0)