diff options
author | Eli Collins <elic@assurancetechnologies.com> | 2020-10-06 11:31:50 -0400 |
---|---|---|
committer | Eli Collins <elic@assurancetechnologies.com> | 2020-10-06 11:31:50 -0400 |
commit | 0c47ce414b4476cb570be310c456389ff4e87817 (patch) | |
tree | eff9452bc75c68c93f7e3f2c1cdd4364288c2494 | |
parent | 4fd7c8efa8027bfbc017fcbe0c5d85e6e1506696 (diff) | |
download | passlib-0c47ce414b4476cb570be310c456389ff4e87817.tar.gz |
bugfix: passlib.utils: add stub safe_crypt() control flags when crypt() isn't available.
(needed for windows)
-rw-r--r-- | passlib/utils/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/passlib/utils/__init__.py b/passlib/utils/__init__.py index e3df5d5..6147886 100644 --- a/passlib/utils/__init__.py +++ b/passlib/utils/__init__.py @@ -855,6 +855,9 @@ try: except ImportError: # pragma: no cover _crypt = None has_crypt = False + crypt_accepts_bytes = False + crypt_needs_lock = False + _safe_crypt_lock = None def safe_crypt(secret, hash): return None else: |