Skip to content

Commit

Permalink
Merge pull request line#14 from line/release-1.0.2
Browse files Browse the repository at this point in the history
Release 1.0.2
  • Loading branch information
be-hase authored Oct 19, 2016
2 parents b763069 + b4735a0 commit 11ad5d6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion linebot/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from __future__ import unicode_literals

__version__ = '1.0.1'
__version__ = '1.0.2'
__author__ = 'LINE Corporation'
__copyright__ = 'Copyright 2016, LINE Corporation'
__license__ = 'Apache 2.0'
Expand Down
10 changes: 8 additions & 2 deletions linebot/webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@

if hasattr(hmac, "compare_digest"):
def compare_digest(val1, val2):
"""compare_digest method.
"""compare_digest function.
If hmac module has compare_digest function, use it.
Or not, use linebot.utils.safe_compare_digest.
:param val1: string or bytes for compare
:type val1: str | bytes
Expand All @@ -49,7 +52,10 @@ def compare_digest(val1, val2):
return hmac.compare_digest(val1, val2)
else:
def compare_digest(val1, val2):
"""compare_digest method.
"""compare_digest function.
If hmac module has compare_digest function, use it.
Or not, use linebot.utils.safe_compare_digest.
:param val1: string or bytes for compare
:type val1: str | bytes
Expand Down

0 comments on commit 11ad5d6

Please sign in to comment.