Show More
@@ -76,7 +76,7 b' def request(host, path, show):' | |||||
76 | if args.bodyfile: |
|
76 | if args.bodyfile: | |
77 | bodyfh = open(args.bodyfile, 'wb') |
|
77 | bodyfh = open(args.bodyfile, 'wb') | |
78 | else: |
|
78 | else: | |
79 | bodyfh = sys.stdout |
|
79 | bodyfh = getattr(sys.stdout, 'buffer', sys.stdout) | |
80 |
|
80 | |||
81 | # Pretty print JSON. This also has the beneficial side-effect |
|
81 | # Pretty print JSON. This also has the beneficial side-effect | |
82 | # of verifying emitted JSON is well-formed. |
|
82 | # of verifying emitted JSON is well-formed. |
General Comments 0
You need to be logged in to leave comments.
Login now