Skip to content

Commit 269783c

Browse files
author
Cloud User
committed
fix for python 3.5 and older
1 parent 03e426b commit 269783c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sasctl/tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,11 +217,11 @@ def get_version(x):
217217
zipfilecopy = copy.deepcopy(zipfile)
218218
tmpzip=zp.ZipFile(zipfilecopy)
219219
if "outputVar.json" in tmpzip.namelist():
220-
outvar=json.loads(tmpzip.read("outputVar.json"))
220+
outvar=json.loads(tmpzip.read("outputVar.json").decode('utf=8')) #added decode for 3.5 and older
221221
for tmp in outvar:
222222
tmp.update({'role':'output'})
223223
if "inputVar.json" in tmpzip.namelist():
224-
invar=json.loads(tmpzip.read("inputVar.json"))
224+
invar=json.loads(tmpzip.read("inputVar.json").decode('utf-8')) #added decode for 3.5 and older
225225
for tmp in invar:
226226
if tmp['role'] != 'input':
227227
tmp['role']='input'

0 commit comments

Comments
 (0)