Skip to content

Commit e1a9d0e

Browse files
committed
Fix SyntaxWarning: invalid escape sequence '\ '
1 parent 65294fe commit e1a9d0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pypicode/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def decodeString(pilight_string:str):
239239
decoded_protocols = _picode_wraper.decodeString(pilight_string)
240240

241241
if (isinstance(decoded_protocols,str)):
242-
decoded_protocols = _sub("\n\ *","",decoded_protocols)
242+
decoded_protocols = _sub(r"\n\ *","",decoded_protocols)
243243
result = _literal_eval(decoded_protocols)
244244
if not isinstance(result,dict):
245245
result = None

0 commit comments

Comments
 (0)