Skip to content

Commit 46748f2

Browse files
committed
Fixed dependency to removed crypt module (2)
1 parent 9811df6 commit 46748f2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ classifiers = [
2626
"Topic :: Software Development :: Libraries :: Python Modules",
2727
]
2828
dependencies = [
29-
"crypt-r; python_version >= '3.13'",
29+
"legacycrypt; python_version >= '3.13'",
3030
"markdown2>=2.4.0",
3131
]
3232
dynamic = ["version"]

src/codext/hashing/crypt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
try:
1616
import crypt
1717
except ImportError:
18-
import crypt_r as crypt
18+
import legacycrypt as crypt
1919

2020
METHODS = [x[7:].lower() for x in crypt.__dict__ if x.startswith("METHOD_")]
2121

0 commit comments

Comments
 (0)