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

Commit 6b10b4e

Browse files
Fix deprecation warnings
Python 3.6+ warns on what are seen as Unicode escape sequences in strings (but are not actually Unicode, such as `\+`). This'll eventually become a hard error, so we want to fix this.
1 parent 6210ed5 commit 6b10b4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

highfive/newpr.py

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

36-
reviewer_re = re.compile("\\b[rR]\?[:\- ]*@([a-zA-Z0-9\-]+)")
37-
reviewer_group_re = re.compile("\\b[rR]\?[:\- ]*@?(?:([a-zA-Z0-9\-]+)/)([a-zA-Z0-9\-]+)")
38-
submodule_re = re.compile(".*\+Subproject\scommit\s.*", re.DOTALL | re.MULTILINE)
36+
reviewer_re = re.compile(r"\b[rR]\?[:\- ]*@([a-zA-Z0-9\-]+)")
37+
reviewer_group_re = re.compile(r"\b[rR]\?[:\- ]*@?(?:([a-zA-Z0-9\-]+)/)([a-zA-Z0-9\-]+)")
38+
submodule_re = re.compile(r".*\+Subproject\scommit\s.*", re.DOTALL | re.MULTILINE)
3939
target_re = re.compile("^[+-]{3} [ab]/compiler/rustc_target/src/spec/", re.MULTILINE)
4040

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

0 commit comments

Comments
 (0)