Skip to content

Commit 66afe0d

Browse files
authored
Decode bytes to string. (#4956)
1 parent e255126 commit 66afe0d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/build/citool

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ def validateResponse(res):
220220
body = res.read()
221221

222222
if res.status != OK:
223+
body = body.decode('utf-8')
223224
if body.startswith('<'):
224225
dom = minidom.parseString(body)
225226
print(dom.toprettyxml()),

0 commit comments

Comments
 (0)