diff --git a/onesky/client.py b/onesky/client.py index ef64ba7..e5b73b6 100644 --- a/onesky/client.py +++ b/onesky/client.py @@ -23,8 +23,8 @@ def create_auth_variables(self): timestamp = str(int(time.time())) dev_hash = hashlib.md5() - dev_hash.update(timestamp) - dev_hash.update(self.api_secret) + dev_hash.update(timestamp.encode('utf-8')) + dev_hash.update(self.api_secret.encode('utf-8')) return { 'api_key': self.api_key, diff --git a/onesky/interactive.py b/onesky/interactive.py index e253955..ffdd4d7 100755 --- a/onesky/interactive.py +++ b/onesky/interactive.py @@ -7,7 +7,7 @@ import urllib import sys -import client +from onesky import client # helper to simplify the boilerplate wrapping all the API calls with command