From d624da9778c41ba00741d83827ac53042531b0c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 5 Nov 2024 14:04:10 +0100 Subject: [PATCH] Get rid of SyntaxWarning: invalid escape sequence '\d' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miro HronĨok --- src/centpkg/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/centpkg/__init__.py b/src/centpkg/__init__.py index f614d33..1de8b59 100644 --- a/src/centpkg/__init__.py +++ b/src/centpkg/__init__.py @@ -171,7 +171,7 @@ class Commands(Commands): # For MD5 we want to use the old format of source files, the BSD format # should only be used when configured for SHA512 self.source_entry_type = "bsd" if self.lookasidehash != "md5" else "old" - self.branchre = "c\d{1,}(s)?(tream)?|master" + self.branchre = r"c\d{1,}(s)?(tream)?|master" @property def distgitdir(self):