More py34 fixes

This commit is contained in:
Clint Byrum 2015-11-11 15:28:20 -08:00
parent 935f575672
commit 3154a0f8a3
1 changed files with 2 additions and 2 deletions

View File

@ -81,8 +81,8 @@ def main(argv=None, stdout=None):
mime_type='application/json')
stream.stopTestRun()
else:
stdout.write(content)
stdout.write(b"\n")
stdout.write(content.decode('utf-8'))
stdout.write("\n")
if args.output:
with open(args.output, 'wb') as output:
output.write(content)