aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@qt.io>2018-05-02 12:30:11 +0200
committerTopi Reiniƶ <topi.reinio@qt.io>2018-05-03 11:17:06 +0000
commitb3d6b8aa8d21217dd15008033d84994e9d1dfbd5 (patch)
tree5fb5a32f630218860c4f4b0d7b851590454bb351 /sources/pyside2
parent1f735762e943c36b36d4dfa7b35954de86e4882e (diff)
Decode qtattributionsscanner output to UTF-8
Without the decode() step, the script may fail with TypeError: the JSON object must be str, not 'bytes' Task-number: PYSIDE-363 Change-Id: Ib9a8e487cc1b9f51692d0c4f20009a0c97cc770e Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside2')
-rw-r--r--sources/pyside2/doc/qtattributionsscannertorst.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside2/doc/qtattributionsscannertorst.py b/sources/pyside2/doc/qtattributionsscannertorst.py
index af02103e..ac651ca8 100644
--- a/sources/pyside2/doc/qtattributionsscannertorst.py
+++ b/sources/pyside2/doc/qtattributionsscannertorst.py
@@ -119,7 +119,7 @@ def runScanner(directory, targetFileName):
with open(targetFileName, 'w') as targetFile:
targetFile.write(rstHeader)
- for entry in json.loads(jsonS):
+ for entry in json.loads(jsonS.decode('utf-8')):
name = entry['Name']
title = "{}\n{}".format(name, '-' * len(name))
brief = entry['License']