changeset 36276 | c95c8ab2e7ec |
parent 35781 | c6ef8e841873 |
child 36576 | cfd0c1df5e33 |
--- a/tests/get-with-headers.py Sat Feb 17 22:38:53 2018 -0500 +++ b/tests/get-with-headers.py Sat Feb 17 22:39:12 2018 -0500 @@ -76,7 +76,7 @@ if args.bodyfile: bodyfh = open(args.bodyfile, 'wb') else: - bodyfh = sys.stdout + bodyfh = getattr(sys.stdout, 'buffer', sys.stdout) # Pretty print JSON. This also has the beneficial side-effect # of verifying emitted JSON is well-formed.