diff -r 33a5ab6c578a Doc/library/crypt.rst --- a/Doc/library/crypt.rst Thu Oct 01 08:44:03 2015 +0200 +++ b/Doc/library/crypt.rst Thu Oct 01 08:46:05 2015 +0200 @@ -64,7 +64,7 @@ Module Attributes 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``. + weakest. Module Functions diff -r 33a5ab6c578a Lib/crypt.py --- a/Lib/crypt.py Thu Oct 01 08:44:03 2015 +0200 +++ b/Lib/crypt.py Thu Oct 01 08:46:05 2015 +0200 @@ -54,9 +54,8 @@ METHOD_SHA256 = _Method('SHA256', '5', 1 METHOD_SHA512 = _Method('SHA512', '6', 16, 106) methods = [] -for _method in (METHOD_SHA512, METHOD_SHA256, METHOD_MD5): +for _method in (METHOD_SHA512, METHOD_SHA256, METHOD_MD5, METHOD_CRYPT): _result = crypt('', _method) if _result and len(_result) == _method.total_size: methods.append(_method) -methods.append(METHOD_CRYPT) del _result, _method