Skip to content

Commit 38c45de

Browse files
authored
Fix SyntaxWarning: invalid escape sequence '\B' (#674)
Use raw triple double quotes, because backslashes are being used in the docstring. This was the warning: (...)/site-packages/ahbicht/expressions/ahb_expression_parser.py:29: SyntaxWarning: invalid escape sequence '\B' CONDITION_EXPRESSION: /(?!\BU\B)[\[\]\(\)U∧O∨X⊻\d\sP\.UBn]+/i
1 parent 74810f8 commit 38c45de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ahbicht/expressions/ahb_expression_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from ahbicht.expressions.sanitizer import sanitize_expression
1616
from ahbicht.utility_functions import tree_copy
1717

18-
GRAMMAR = """
18+
GRAMMAR = r"""
1919
ahb_expression: modal_mark_expression+
2020
| prefix_operator_expression
2121
| requirement_indicator

0 commit comments

Comments
 (0)