Remove encode in JSON parser (#20489)

This commit is contained in:
Ashwin Sekar 2021-10-06 16:59:08 -07:00 committed by GitHub
parent 5ceb5ef328
commit 00929f8363
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ data=json.load(sys.stdin)
if 'results' in data:
for result in data['results']:
if 'series' in result:
print(result['series'][0]['columns'][1].encode() + ': ' + str(result['series'][0]['values'][0][1]))
print(result['series'][0]['columns'][1] + ': ' + str(result['series'][0]['values'][0][1]))
else:
print("An expected result from CURL request is missing")
else: