Get rid of SyntaxWarning: invalid escape sequence '\d'

Signed-off-by: Miro Hrončok <miro@hroncok.cz>
This commit is contained in:
Miro Hrončok 2024-11-05 14:04:10 +01:00 committed by tdawson
parent 12342a17b7
commit d624da9778

View file

@ -171,7 +171,7 @@ class Commands(Commands):
# For MD5 we want to use the old format of source files, the BSD format # For MD5 we want to use the old format of source files, the BSD format
# should only be used when configured for SHA512 # should only be used when configured for SHA512
self.source_entry_type = "bsd" if self.lookasidehash != "md5" else "old" 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 @property
def distgitdir(self): def distgitdir(self):