Skip to content

Commit b4735a0

Browse files
committed
release 1.0.2
1 parent b763069 commit b4735a0

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

linebot/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
from __future__ import unicode_literals
1818

19-
__version__ = '1.0.1'
19+
__version__ = '1.0.2'
2020
__author__ = 'LINE Corporation'
2121
__copyright__ = 'Copyright 2016, LINE Corporation'
2222
__license__ = 'Apache 2.0'

linebot/webhook.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@
3737

3838
if hasattr(hmac, "compare_digest"):
3939
def compare_digest(val1, val2):
40-
"""compare_digest method.
40+
"""compare_digest function.
41+
42+
If hmac module has compare_digest function, use it.
43+
Or not, use linebot.utils.safe_compare_digest.
4144
4245
:param val1: string or bytes for compare
4346
:type val1: str | bytes
@@ -49,7 +52,10 @@ def compare_digest(val1, val2):
4952
return hmac.compare_digest(val1, val2)
5053
else:
5154
def compare_digest(val1, val2):
52-
"""compare_digest method.
55+
"""compare_digest function.
56+
57+
If hmac module has compare_digest function, use it.
58+
Or not, use linebot.utils.safe_compare_digest.
5359
5460
:param val1: string or bytes for compare
5561
:type val1: str | bytes

0 commit comments

Comments
 (0)