From: Stephen Finucane Date: Sun, 24 Jun 2018 19:55:55 +0000 (+0100) Subject: Resolve Python 3.6 warnings X-Git-Tag: v2.2.0-rc1~308 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67c76281c25efd88dfda1a86f4b277e8f1bfbb53;p=thirdparty%2Fpatchwork.git Resolve Python 3.6 warnings DeprecationWarning: invalid escape sequence \d Signed-off-by: Stephen Finucane Reviewed-by: Daniel Axtens Signed-off-by: Daniel Axtens --- diff --git a/patchwork/parser.py b/patchwork/parser.py index a2db4037..40a80f26 100644 --- a/patchwork/parser.py +++ b/patchwork/parser.py @@ -486,7 +486,7 @@ def parse_version(subject, subject_prefixes): Returns: version if found, else 1 """ - regex = re.compile('^[vV](\d+)$') + regex = re.compile(r'^[vV](\d+)$') m = _find_matching_prefix(subject_prefixes, regex) if m: return int(m.group(1))