summaryrefslogtreecommitdiffstats
path: root/Lib/hashlib.py
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2010-03-01 02:01:47 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2010-03-01 02:01:47 (GMT)
commite6390a15033b9a93d345338d06b220542687b3fd (patch)
tree6105ab6804da46cd2e3ea0534a60425dea1c1bcb /Lib/hashlib.py
parent9e5d1327f8a6f3a266b76118e0c660c7bcb12ce9 (diff)
downloadcpython-e6390a15033b9a93d345338d06b220542687b3fd.zip
cpython-e6390a15033b9a93d345338d06b220542687b3fd.tar.gz
cpython-e6390a15033b9a93d345338d06b220542687b3fd.tar.bz2
Adds the hashlib.algorithms attribute. See issue7418.
Diffstat (limited to 'Lib/hashlib.py')
-rw-r--r--Lib/hashlib.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/hashlib.py b/Lib/hashlib.py
index 5ecca2b..48f2cfd 100644
--- a/Lib/hashlib.py
+++ b/Lib/hashlib.py
@@ -58,7 +58,9 @@ More condensed:
# always available algorithm is added.
__always_supported = ('md5', 'sha1', 'sha224', 'sha256', 'sha384', 'sha512')
-__all__ = __always_supported + ('new',)
+algorithms = __always_supported
+
+__all__ = __always_supported + ('new', 'algorithms')
def __get_builtin_constructor(name):