Skip to content

Commit b2fee96

Browse files
committed
Fix SyntaxWarning introduced in Python 3.14
Fix this warning: ass_tag_analyzer\ass_type_parser.py:12: SyntaxWarning: "\s" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\s"? A raw string is also an option. \s
1 parent 3976eb7 commit b2fee96

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ass_tag_analyzer/ass_type_parser.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ class TypeParser:
99

1010
"""
1111
From python documentation
12-
\s
12+
\\s
1313
For Unicode (str) patterns:
14-
[...]. If the ASCII flag is used, only [ \t\n\r\f\v] is matched.
15-
\d
14+
[...]. If the ASCII flag is used, only [ \\t\\n\\r\\f\\v] is matched.
15+
\\d
1616
For Unicode (str) patterns:
1717
[...]. If the ASCII flag is used only [0-9] is matched.
1818
Libass

0 commit comments

Comments
 (0)