| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Using ^\s*(import crypt\b|from crypt\b) regex, I found the following PyPI top 5,000 projects using the removed crypt module. Affected projects (8):
Django-4.2/tests/auth_tests/test_hashers.py: import crypt ansible-7.4.0/ansible_collections/community/general/plugins/modules/homectl.py: import crypt ansible-7.4.0/ansible_collections/community/general/plugins/modules/udm_user.py: import crypt Twisted-22.10.0/src/twisted/conch/test/test_checkers.py: import crypt Twisted-22.10.0/src/twisted/cred/test/test_cred.py: from crypt import crypt as _crypt Twisted-22.10.0/src/twisted/plugins/cred_unix.py: import crypt ansible-core-2.14.4/lib/ansible/utils/encrypt.py: import crypt passlib-1.7.4/passlib/tests/utils.py: from crypt import crypt passlib-1.7.4/passlib/utils/__init__.py: from crypt import crypt as _crypt pyftpdlib-1.5.7/pyftpdlib/authorizers.py: import crypt pytest-testinfra-7.0.0/test/test_modules.py: import crypt htpasswd-2.3/htpasswd/basic.py: from crypt import crypt |
Sorry, something went wrong.
It's interesting that the proposed replacement for the removed crypt module actually uses crypt internally (in /passlib/utils/__init__.py) :-) |
Sorry, something went wrong.
|
Are these bits still needed? Lib/ctypes/util.py
366: print(f"crypt\t:: {find_library('crypt')}")
367: print(f"crypt\t:: {cdll.LoadLibrary(find_library('crypt'))}")
373: print(find_library("crypt"))
|
Sorry, something went wrong.
Remove the crypt module and its private _crypt extension, deprecated in Python 3.11.
IMO we should keep it. I saw this test in ctypes. I don't see any direct relationship with the Python crypt module. It's just a test to load a dynamic library which is commonly available on Unix. |
Sorry, something went wrong.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Remove the crypt module and its private _crypt extension, deprecated in Python 3.11.
📚 Documentation preview 📚: https://cpython-previews--104908.org.readthedocs.build/