summaryrefslogtreecommitdiff
path: root/passlib/crypto
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2017-01-22 13:31:46 -0500
committerEli Collins <elic@assurancetechnologies.com>2017-01-22 13:31:46 -0500
commit70163703dd6265f9da99421c5d07fafd9a49d994 (patch)
treec6a9b78c2cbc5355c47a64fba109a4201742c95f /passlib/crypto
parenta0edc29cd71556fd8ba53e96b48972588bfc9b25 (diff)
downloadpasslib-70163703dd6265f9da99421c5d07fafd9a49d994.tar.gz
added r"" prefix to some strings, to fix some python 3.6 deprecation warnings
about invalid escape sequences (e.g. "\s")
Diffstat (limited to 'passlib/crypto')
-rw-r--r--passlib/crypto/digest.py2
1 files changed, 1 insertions, 1 deletions
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<name>[a-z]+)-?(?P<rev>\d)?-?(?P<size>\d{3,4})?$", name)
+ m = re.match(r"(?i)^(?P<name>[a-z]+)-?(?P<rev>\d)?-?(?P<size>\d{3,4})?$", name)
if m:
# roughly follows "SHA2-256" style format, normalize representation,
# and checked table.