Skip to content

Commit 912a506

Browse files
committed
minor fix for httptools
1 parent 4ef3d4f commit 912a506

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

qencode3/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def x265_video_codec():
2929

3030
from . exeptions import QencodeClientException, QencodeTaskException
3131

32-
__version__ = "0.9.17"
32+
__version__ = "0.9.18"
3333
__status__ = "Beta"
3434
__author__ = "Qencode"
3535

qencode3/httptools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ def _call_server(self, url, post_data):
2929
response = dict(error=True, message='Error: {0}'.format(e))
3030
response = json.dumps(response)
3131
else:
32-
response = res.read()
32+
res2 = res.read()
33+
response = res2 if isinstance(res2, str) else res2.decode('utf-8')
3334
return response
3435

3536
def request(self, api_name, data):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
setup(
1010
name='qencode3',
11-
version='0.9.17',
11+
version='0.9.18',
1212
description='Qencode Python SDK',
1313
url='https://github.com/qencode-dev/qencode-api-python3-client',
1414
# url=here,

0 commit comments

Comments
 (0)