From: Stephen Finucane Date: Sun, 24 Jun 2018 19:55:55 +0000 (+0100) Subject: Resolve Python 3.6 warnings X-Git-Tag: v2.1.2~19 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7d0b1ddef17283388a1f39099d6c04dadfbd66c5;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 (cherry picked from commit 67c76281c25efd88dfda1a86f4b277e8f1bfbb53) --- 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))