Skip to content

Commit

Permalink
fix json bytes/text for Python 3.5
Browse files Browse the repository at this point in the history
Apparently json.loads() can only handle bytes in 3.6+.
  • Loading branch information
rsyring committed Dec 21, 2018
1 parent ee8efc4 commit 475e3ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diskbench/fio.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def fio(dpath, loops, size):

assert not result.stderr, result.stderr

fio_data = json.loads(result.stdout)
fio_data = json.loads(result.stdout.decode('utf-8'))

return extract_stats(fio_data)

Expand Down

0 comments on commit 475e3ee

Please sign in to comment.