Skip to content
This repository was archived by the owner on Mar 14, 2023. It is now read-only.

Commit 6130f0a

Browse files
committed
Use raw strings for regexes to avoid deprecation warnings
1 parent 9795c20 commit 6130f0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

highfive/newpr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
review_with_reviewer = 'r? @%s\n\n(rust-highfive has picked a reviewer for you, use r? to override)'
3535
review_without_reviewer = '@%s: no appropriate reviewer found, use r? to override'
3636

37-
reviewer_re = re.compile("\\b[rR]\?[:\- ]*@([a-zA-Z0-9\-]+)")
38-
submodule_re = re.compile(".*\+Subproject\scommit\s.*", re.DOTALL | re.MULTILINE)
37+
reviewer_re = re.compile(r"\\b[rR]\?[:\- ]*@([a-zA-Z0-9\-]+)")
38+
submodule_re = re.compile(r".*\+Subproject\scommit\s.*", re.DOTALL | re.MULTILINE)
3939

4040
rustaceans_api_url = "http://www.ncameron.org/rustaceans/user?username={username}"
4141

0 commit comments

Comments
 (0)