aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2022-04-11 17:02:19 -0700
committerGitHub <noreply@github.com>2022-04-11 17:02:19 -0700
commitf45aa8f304a12990c2ca687f2088f04b07906033 (patch)
treebea817bc4da59c5e7a195c23298ede51cc46a6ec /Lib/crypt.py
parentgh-91428: Add _PyOpcode_OpName to opcode.h of debug builds (GH-91430) (diff)
downloadcpython-f45aa8f304a12990c2ca687f2088f04b07906033.tar.gz
cpython-f45aa8f304a12990c2ca687f2088f04b07906033.tar.bz2
cpython-f45aa8f304a12990c2ca687f2088f04b07906033.zip
gh-91217: deprecate crypt (GH-91459)
Diffstat (limited to 'Lib/crypt.py')
-rw-r--r--Lib/crypt.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/crypt.py b/Lib/crypt.py
index 33dbc46bb3e..46c3de8474b 100644
--- a/Lib/crypt.py
+++ b/Lib/crypt.py
@@ -12,10 +12,14 @@ except ModuleNotFoundError:
import errno
import string as _string
+import warnings
from random import SystemRandom as _SystemRandom
from collections import namedtuple as _namedtuple
+warnings._deprecated(__name__, remove=(3, 13))
+
+
_saltchars = _string.ascii_letters + _string.digits + './'
_sr = _SystemRandom()