diff options
author | Raymond Hettinger <python@rcn.com> | 2011-01-24 04:52:27 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2011-01-24 04:52:27 (GMT) |
commit | bf1d2bc7cbebf59c9128805e8261406420053311 (patch) | |
tree | 499abe718d5db1d4460f1d914e8f9b16a97434ad /Lib/hashlib.py | |
parent | acff595a4eca82c2742f3158c2a7709cc37f4d70 (diff) | |
download | cpython-bf1d2bc7cbebf59c9128805e8261406420053311.zip cpython-bf1d2bc7cbebf59c9128805e8261406420053311.tar.gz cpython-bf1d2bc7cbebf59c9128805e8261406420053311.tar.bz2 |
Make the type consistent for hashlib algorithm constants. (Reviewed by Benjamin).
Diffstat (limited to 'Lib/hashlib.py')
-rw-r--r-- | Lib/hashlib.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/hashlib.py b/Lib/hashlib.py index 9d860c4..0d7e325 100644 --- a/Lib/hashlib.py +++ b/Lib/hashlib.py @@ -56,8 +56,8 @@ More condensed: # always available algorithm is added. __always_supported = ('md5', 'sha1', 'sha224', 'sha256', 'sha384', 'sha512') -algorithms_guaranteed = __always_supported -algorithms_available = frozenset(__always_supported) +algorithms_guaranteed = set(__always_supported) +algorithms_available = set(__always_supported) __all__ = __always_supported + ('new', 'algorithms_guaranteed', 'algorithms_available') |