Skip to content

Commit 7bd6778

Browse files
changed 'str' to 'basestring'
1 parent bf49e01 commit 7bd6778

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

qencode/__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.16"
32+
__version__ = "0.9.17"
3333
__status__ = "Beta"
3434
__author__ = "Qencode"
3535

qencode/task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def _prepare_query(self, params):
105105
query = rm_key_if_null(params)
106106
return json.dumps(query)
107107

108-
if isinstance(params, str):
108+
if isinstance(params, basestring):
109109
if is_json(params):
110110
query = rm_key_if_null(params)
111111
return query

qencode/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def rm_attributes_if_null(class_obj):
2929
def rm_key_if_null(obj):
3030
if isinstance(obj, dict):
3131
return _rm_key(obj)
32-
elif isinstance(obj, str):
32+
elif isinstance(obj, basestring):
3333
res = _rm_key(json.loads(obj))
3434
return json.dumps(res)
3535

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='qencode',
11-
version='0.9.16',
11+
version='0.9.17',
1212
description='Qencode Python SDK',
1313
url='https://github.com/qencode-dev/qencode-api-python-client',
1414
# url=here,

0 commit comments

Comments
 (0)