##// END OF EJS Templates
tests: fix get-with-headers.py on python3 when writing to stdout...
Augie Fackler -
r36290:c95c8ab2 default
parent child Browse files
Show More
@@ -76,7 +76,7 b' def request(host, path, show):'
76 76 if args.bodyfile:
77 77 bodyfh = open(args.bodyfile, 'wb')
78 78 else:
79 bodyfh = sys.stdout
79 bodyfh = getattr(sys.stdout, 'buffer', sys.stdout)
80 80
81 81 # Pretty print JSON. This also has the beneficial side-effect
82 82 # of verifying emitted JSON is well-formed.
General Comments 0
You need to be logged in to leave comments. Login now