preserve downloadTaskOutput return type
This commit is contained in:
parent
4222b097c1
commit
e0ba3d148d
2 changed files with 4 additions and 3 deletions
|
|
@ -9222,7 +9222,10 @@ class RootExports(object):
|
|||
elif offset != None and offset < 0:
|
||||
f.seek(offset, 2)
|
||||
contents = f.read(size)
|
||||
return base64.encodestring(contents)
|
||||
if six.PY2:
|
||||
return base64.encodestring(contents)
|
||||
else:
|
||||
return base64.encodestring(contents).decode()
|
||||
|
||||
listTaskOutput = staticmethod(list_task_output)
|
||||
|
||||
|
|
|
|||
|
|
@ -2827,8 +2827,6 @@ class ClientSession(object):
|
|||
if volume and volume != 'DEFAULT':
|
||||
dlopts['volume'] = volume
|
||||
result = self.callMethod('downloadTaskOutput', taskID, fileName, **dlopts)
|
||||
# py3 doesn't return encodable string
|
||||
result = str(result)
|
||||
return base64.decodestring(result.encode('ascii'))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue