Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdf36d7d

Browse files
authored
Update Lib/hmac.py
1 parentf93e1ba commitdf36d7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Lib/hmac.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def digest(key, msg, digest):
242242
try:
243243
return_hashopenssl.hmac_digest(key,msg,digest)
244244
exceptOverflowErrorasexc:
245-
ifnotisinstance(digest,str):
245+
if_hmacisNoneornotisinstance(digest,str):
246246
# Without re-raising now, slow HMAC will be used as
247247
# HACL* HMAC only identifies digests by their name.
248248
raiseexc

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp