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.
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 @@
.. 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 @@
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)