Skip to content

Commit 28a603d

Browse files
authored
update comments
1 parent 0ad4580 commit 28a603d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Lib/test/support/hashlib_helper.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def is_keyed(self):
5959

6060

6161
CANONICAL_DIGEST_NAMES = frozenset(map(str, HID.__members__))
62-
NON_HMAC_DIGEST_NAMES = frozenset(( # fmt: skip
62+
NON_HMAC_DIGEST_NAMES = frozenset((
6363
HID.shake_128, HID.shake_256,
6464
HID.blake2s, HID.blake2b,
6565
))
@@ -73,6 +73,7 @@ class HashInfo:
7373
7474
- *openssl* is the name of the "_hashlib" module method for the explicit
7575
OpenSSL hash constructor function, e.g., "openssl_md5".
76+
7677
- *hashlib* is the name of the "hashlib" module method for the explicit
7778
hash constructor function, e.g., "md5".
7879
"""
@@ -244,7 +245,7 @@ class SkipNoHash(unittest.SkipTest):
244245
"""A SkipTest exception raised when a hash is not available."""
245246

246247
def __init__(self, digestname, implementation=None, interface=None):
247-
parts = ["missing", implementation, f"hash algorithm: {digestname!r}"]
248+
parts = ["missing", implementation, f"hash algorithm {digestname!r}"]
248249
if interface is not None:
249250
parts.append(f"for {interface}")
250251
super().__init__(" ".join(filter(None, parts)))

0 commit comments

Comments
 (0)