[passlib] Fix for Python 3.13 (#13649)

`passlib.hosts.host_context` is not present on Python 3.13.
This commit is contained in:
Sebastian Rittau
2025-03-18 01:14:52 +01:00
committed by GitHub
parent d6373d9d4e
commit f0d9b4e056
+3 -1
View File
@@ -1,3 +1,4 @@
import sys
from typing import Any
from passlib.context import CryptContext
@@ -8,4 +9,5 @@ freebsd_context: Any
openbsd_context: Any
netbsd_context: Any
# Only exists if crypt is present
host_context: CryptContext
if sys.version_info < (3, 13):
host_context: CryptContext