Skip to content

Commit da0b379

Browse files
domdfcodingmichaelmior
authored andcommitted
Use raw strings for regular expressions to avoid DeprecationWarning.
1 parent b274107 commit da0b379

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jsonpath_ng/ext/string.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
from .. import DatumInContext, This
1616

1717

18-
SUB = re.compile("sub\(/(.*)/,\s+(.*)\)")
19-
SPLIT = re.compile("split\((.),\s+(\d+),\s+(\d+|-1)\)")
20-
STR = re.compile("str\(\)")
18+
SUB = re.compile(r"sub\(/(.*)/,\s+(.*)\)")
19+
SPLIT = re.compile(r"split\((.),\s+(\d+),\s+(\d+|-1)\)")
20+
STR = re.compile(r"str\(\)")
2121

2222

2323
class DefintionInvalid(Exception):

0 commit comments

Comments
 (0)