summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-04-05 03:15:30 (GMT)
committerGitHub <noreply@github.com>2022-04-05 03:15:30 (GMT)
commitc1984f39c5a34cbffc137676fa0b624ca598599f (patch)
tree10a556ec727d05a1cc865e176a4c829d803034a4
parent31c9e35e5360ba91fc6b81b23eb21dd3c39e2257 (diff)
downloadcpython-c1984f39c5a34cbffc137676fa0b624ca598599f.zip
cpython-c1984f39c5a34cbffc137676fa0b624ca598599f.tar.gz
cpython-c1984f39c5a34cbffc137676fa0b624ca598599f.tar.bz2
crypt docs: Fix references to `methods` attr (GH-26806)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit cae0f5d3dad6db0d13690e5952ae2015ad8b3a05) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
-rw-r--r--Doc/library/crypt.rst7
1 files changed, 3 insertions, 4 deletions
diff --git a/Doc/library/crypt.rst b/Doc/library/crypt.rst
index 73df87c..3189ece 100644
--- a/Doc/library/crypt.rst
+++ b/Doc/library/crypt.rst
@@ -96,8 +96,7 @@ The :mod:`crypt` module defines the following functions:
:func:`mksalt`, one of the ``crypt.METHOD_*`` values (though not all
may be available on all platforms), or a full encrypted password
including salt, as returned by this function. If *salt* is not
- provided, the strongest method will be used (as returned by
- :func:`methods`).
+ provided, the strongest method available in :attr:`methods` will be used.
Checking a password is usually done by passing the plain-text password
as *word* and the full results of a previous :func:`crypt` call,
@@ -125,8 +124,8 @@ The :mod:`crypt` module defines the following functions:
.. function:: mksalt(method=None, *, rounds=None)
Return a randomly generated salt of the specified method. If no
- *method* is given, the strongest method available as returned by
- :func:`methods` is used.
+ *method* is given, the strongest method available in :attr:`methods` is
+ used.
The return value is a string suitable for passing as the *salt* argument
to :func:`crypt`.