From 0e3889232d9288d769002b2e1f97675358589e03 Mon Sep 17 00:00:00 2001 From: SangHee Kim Date: Tue, 16 Feb 2016 14:23:08 -0500 Subject: [PATCH 1/2] Fixed NameError due to typo For using "bytes" object, we need to use bytes built-in functions in python 3, not byte. --- userapp/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/userapp/__init__.py b/userapp/__init__.py index 124ca85..210b5b0 100644 --- a/userapp/__init__.py +++ b/userapp/__init__.py @@ -223,7 +223,7 @@ def call(self, version, service, method, arguments): if sys.version_info[0] < 3: encoded_credentials=base64.b64encode('{u}:{p}'.format(u=self._app_id, p=self._token)).encode('ascii') else: - encoded_credentials=base64.b64encode(byte('{u}:{p}'.format(u=self._app_id, p=self._token), 'ascii')).decode('ascii') + encoded_credentials=base64.b64encode(bytes('{u}:{p}'.format(u=self._app_id, p=self._token), 'ascii')).decode('ascii') response = self._transport.call( 'post', @@ -382,4 +382,4 @@ def get_instance(**kwargs): if API.instance is None: API.instance=API(**kwargs) - return API.instance \ No newline at end of file + return API.instance From 075fc00ac1f6b27460772723fda92b047350eb8f Mon Sep 17 00:00:00 2001 From: SangHee Kim Date: Tue, 16 Feb 2016 15:08:12 -0500 Subject: [PATCH 2/2] This is kind of fake version up before the official one is released. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 2a15146..5ade3c8 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages import sys, os -version = '1.0.5' +version = '1.0.5.1' setup( name='userapp',