Skip to content

Commit ec51264

Browse files
committed
Fix invalid escape sequence flagged by pytest
``` pythonosc/dispatcher.py:153 /workspaces/python-osc/pythonosc/dispatcher.py:153: DeprecationWarning: invalid escape sequence '\+' pattern = pattern.replace('\\*', '[\\w|\+]*') ```
1 parent 913fd5c commit ec51264

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pythonosc/dispatcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def handlers_for_address(self, address_pattern: str) -> Generator[Handler, None,
150150
pattern = escaped_address_pattern.replace('\\?', '\\w?')
151151
# '*' in the OSC Address Pattern matches any sequence of zero or more
152152
# characters.
153-
pattern = pattern.replace('\\*', '[\w|\+]*')
153+
pattern = pattern.replace('\\*', '[\\w|\\+]*')
154154
# The rest of the syntax in the specification is like the re module so
155155
# we're fine.
156156
pattern = pattern + '$'

0 commit comments

Comments
 (0)