Skip to content

Commit 9c4111d

Browse files
authored
Fix syntax warning about an invalid escape sequence (#84)
Fix "invalid escape sequence" SyntaxWarning with Python 3.12
1 parent cfc90ef commit 9c4111d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inst/service/backend/_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def ver_strip(version):
4343
version = version.rsplit("-", 1)[0]
4444
version = version.rsplit("+")[0]
4545
# remove things like .r79, see r-cran-rniftilib
46-
version = re.sub("\.r[0-9]+$", "", version)
46+
version = re.sub(r"\.r[0-9]+$", "", version)
4747
return version
4848

4949
def pkg_record(prefixes, name, version, repo):

0 commit comments

Comments
 (0)