Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/Unicode-objects_must_be_encoded_before_hashing'
Browse files Browse the repository at this point in the history
  • Loading branch information
awong1900 committed Jul 20, 2016
2 parents d21ba9a + 8926c4f commit 4ea8da2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wio/commands/cmd_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def get_sign(url, time):
sign = ''
for l in li:
sign += l
h = hashlib.sha1(sign)
h = hashlib.sha1(sign.encode('utf-8'))
return h.hexdigest()

def login_seeed(email, passwd):
Expand Down
2 changes: 1 addition & 1 deletion wio/wio.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from requests.packages.urllib3.exceptions import InsecureRequestWarning


version = '0.2.0'
version = '0.2.1'

WIO_LINK_V1_0 = 'Wio Link v1.0'
WIO_NODE_V1_0 = 'Wio Node v1.0'
Expand Down

0 comments on commit 4ea8da2

Please sign in to comment.