From 70163703dd6265f9da99421c5d07fafd9a49d994 Mon Sep 17 00:00:00 2001 From: Eli Collins Date: Sun, 22 Jan 2017 13:31:46 -0500 Subject: added r"" prefix to some strings, to fix some python 3.6 deprecation warnings about invalid escape sequences (e.g. "\s") --- passlib/crypto/digest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'passlib/crypto') diff --git a/passlib/crypto/digest.py b/passlib/crypto/digest.py index 18dce85..d26f892 100644 --- a/passlib/crypto/digest.py +++ b/passlib/crypto/digest.py @@ -124,7 +124,7 @@ def _get_hash_aliases(name): return result # try to clean name up some more - m = re.match("(?i)^(?P[a-z]+)-?(?P\d)?-?(?P\d{3,4})?$", name) + m = re.match(r"(?i)^(?P[a-z]+)-?(?P\d)?-?(?P\d{3,4})?$", name) if m: # roughly follows "SHA2-256" style format, normalize representation, # and checked table. -- cgit v1.2.1