diff options
author | Stephen Finucane <stephen@that.guru> | 2018-06-24 20:55:55 +0100 |
---|---|---|
committer | Daniel Axtens <dja@axtens.net> | 2018-08-26 16:58:21 +1000 |
commit | 67c76281c25efd88dfda1a86f4b277e8f1bfbb53 (patch) | |
tree | 04ae521b77bfedaca5a848abc889015ef978743f | |
parent | a6abd48b9c31014766c69d27c18dc7a74881e9c9 (diff) | |
download | patchwork-67c76281c25efd88dfda1a86f4b277e8f1bfbb53.tar patchwork-67c76281c25efd88dfda1a86f4b277e8f1bfbb53.tar.gz |
Resolve Python 3.6 warnings
DeprecationWarning: invalid escape sequence \d
Signed-off-by: Stephen Finucane <stephen@that.guru>
Reviewed-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Daniel Axtens <dja@axtens.net>
-rw-r--r-- | patchwork/parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/patchwork/parser.py b/patchwork/parser.py index a2db403..40a80f2 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)) |