mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Make the type consistent for hashlib algorithm constants. (Reviewed by Benjamin).
This commit is contained in:
parent
acff595a4e
commit
bf1d2bc7cb
3 changed files with 6 additions and 3 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue