Skip to content

Commit 25e81e6

Browse files
authored
Merge pull request #1 from Homeloc/master
Merge pull request Jana-Mobile#7 from Homeloc/master
2 parents 5ccb6eb + 79074b4 commit 25e81e6

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

onesky/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ def create_auth_variables(self):
2323
timestamp = str(int(time.time()))
2424

2525
dev_hash = hashlib.md5()
26-
dev_hash.update(timestamp)
27-
dev_hash.update(self.api_secret)
26+
dev_hash.update(timestamp.encode('utf-8'))
27+
dev_hash.update(self.api_secret.encode('utf-8'))
2828

2929
return {
3030
'api_key': self.api_key,

onesky/interactive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import urllib
88
import sys
99

10-
import client
10+
from onesky import client
1111

1212

1313
# helper to simplify the boilerplate wrapping all the API calls with command

0 commit comments

Comments
 (0)