diff options
| author | Eli Collins <elic@assurancetechnologies.com> | 2017-01-22 13:31:46 -0500 |
|---|---|---|
| committer | Eli Collins <elic@assurancetechnologies.com> | 2017-01-22 13:31:46 -0500 |
| commit | 70163703dd6265f9da99421c5d07fafd9a49d994 (patch) | |
| tree | c6a9b78c2cbc5355c47a64fba109a4201742c95f /passlib/crypto | |
| parent | a0edc29cd71556fd8ba53e96b48972588bfc9b25 (diff) | |
| download | passlib-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.py | 2 |
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. |
