tests/printenv.py
changeset 38296 42f3a277c8dc
parent 38111 bacbe829c2bf
child 41025 3c5aaea9638f
--- a/tests/printenv.py	Tue Jun 12 18:49:22 2018 -0400
+++ b/tests/printenv.py	Tue Jun 12 18:49:35 2018 -0400
@@ -26,6 +26,7 @@
 
 exitcode = 0
 out = sys.stdout
+out = getattr(out, 'buffer', out)
 
 name = sys.argv[1]
 if len(sys.argv) > 2: