Submitter | phabricator |
---|---|
Date | Feb. 18, 2018, 12:46 p.m. |
Message ID | <fce9595b623ddf843486a5e21db572c5@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/28064/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/tests/get-with-headers.py b/tests/get-with-headers.py --- a/tests/get-with-headers.py +++ b/tests/get-with-headers.py @@ -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.