From d624da9778c41ba00741d83827ac53042531b0c2 Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Nov 06 2024 16:52:38 +0000 Subject: Get rid of SyntaxWarning: invalid escape sequence '\d' Signed-off-by: Miro Hrončok --- 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):