We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06d7ca5 commit 6b4da6aCopy full SHA for 6b4da6a
pyproject.toml
@@ -26,6 +26,7 @@ classifiers = [
26
"Topic :: Software Development :: Libraries :: Python Modules",
27
]
28
dependencies = [
29
+ "crypt-r; python_version >= '3.13'",
30
"markdown2>=2.4.0",
31
32
dynamic = ["version"]
src/codext/hashing/crypt.py
@@ -12,7 +12,10 @@
12
13
14
if UNIX:
15
- import crypt
+ try:
16
+ import crypt
17
+ except ImportError:
18
+ import crypt_r as crypt
19
20
METHODS = [x[7:].lower() for x in crypt.__dict__ if x.startswith("METHOD_")]
21
0 commit comments