gallery: Use byte-compatible sys.stdout for CGI output
authorW. Trevor King <wking@tremily.us>
Mon, 9 Dec 2013 05:27:29 +0000 (21:27 -0800)
committerW. Trevor King <wking@tremily.us>
Mon, 9 Dec 2013 05:27:29 +0000 (21:27 -0800)
commit80f7bce68f7db63967c101f1442dabedcbef3005
tree621313be3972196952045686836d9e23e5771c0c
parentcd6398bd449d9d2d3381c2af450255c0f57b571d
gallery: Use byte-compatible sys.stdout for CGI output

We're going to be writing bytes.  In Python 2 they should go to
sys.stdout, but in Python 3 they should go to sys.stdout.buffer.
posts/gallery/gallery.py