Skip to content

Commit 4dfb13d

Browse files
committed
Fix SyntaxWarning: invalid escape sequence '\d'
1 parent ae3d1d9 commit 4dfb13d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

msg2po/core.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# dotall - whether file entries are multiline
2222
FILE_FORMAT = {
2323
"msg": {
24-
"pattern": "{(\d+)}{([^}]*)}{([^}]*)}",
24+
"pattern": r"{(\d+)}{([^}]*)}{([^}]*)}",
2525
"dotall": True,
2626
"index": 0,
2727
"value": 2,
@@ -33,7 +33,7 @@
3333
},
3434
},
3535
"sve": {
36-
"pattern": "(\d+):(.*)",
36+
"pattern": r"(\d+):(.*)",
3737
"dotall": False,
3838
"index": 0,
3939
"value": 1,
@@ -43,7 +43,7 @@
4343
},
4444
},
4545
"txt": {
46-
"pattern": "(\d+):(.*)",
46+
"pattern": r"(\d+):(.*)",
4747
"dotall": False,
4848
"index": 0,
4949
"value": 1,
@@ -54,7 +54,7 @@
5454
},
5555
},
5656
"tra": {
57-
"pattern": "@(\d+)\s*?=\s*?~([^~]*?)~(?:\s)?(?:\[([^]]*)\])?(?:~([^~]*)~)?",
57+
"pattern": r"@(\d+)\s*?=\s*?~([^~]*?)~(?:\s)?(?:\[([^]]*)\])?(?:~([^~]*)~)?",
5858
"dotall": True,
5959
"index": 0,
6060
"value": 1,

0 commit comments

Comments
 (0)