diff options
author | Brett Cannon <bcannon@gmail.com> | 2011-02-22 21:48:06 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2011-02-22 21:48:06 (GMT) |
commit | daa5799cb88667855430bb49f428a4ff6c093456 (patch) | |
tree | fc8f786461e9a7a1543de9de674a2d4af4e2fbe6 /Doc | |
parent | 543b7f3ee90b089d1dea485c36a12ff26c8c55e1 (diff) | |
download | cpython-daa5799cb88667855430bb49f428a4ff6c093456.zip cpython-daa5799cb88667855430bb49f428a4ff6c093456.tar.gz cpython-daa5799cb88667855430bb49f428a4ff6c093456.tar.bz2 |
Make Lib/crypt.py meet PEP 8 standards. This also led to a tweak in the new API
by making methods() into a module attribute as it is statically calculated.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/crypt.rst | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/Doc/library/crypt.rst b/Doc/library/crypt.rst index a5556cf..5881cd0 100644 --- a/Doc/library/crypt.rst +++ b/Doc/library/crypt.rst @@ -60,6 +60,20 @@ are available on all platforms): .. versionadded:: 3.3 + +Module Attributes +----------------- + + +.. attribute:: methods + + A list of available password hashing algorithms, as + ``crypt.METHOD_*`` objects. This list is sorted from strongest to + weakest, and is guaranteed to have at least ``crypt.METHOD_CRYPT``. + +.. versionadded:: 3.3 + + Module Functions ---------------- @@ -98,13 +112,6 @@ The :mod:`crypt` module defines the following functions: Before version 3.3, *salt* must be specified as a string and cannot accept ``crypt.METHOD_*`` values (which don't exist anyway). -.. function:: methods() - - Return a list of available password hashing algorithms, as - ``crypt.METHOD_*`` objects. This list is sorted from strongest to - weakest, and is guaranteed to have at least ``crypt.METHOD_CRYPT``. - -.. versionadded:: 3.3 .. function:: mksalt(method=None) |