diff tests/printenv.py @ 38296:42f3a277c8dc

tests: fix printenv script on Python 3 Differential Revision: https://phab.mercurial-scm.org/D3725
author Augie Fackler <augie@google.com>
date Tue, 12 Jun 2018 18:49:35 -0400
parents bacbe829c2bf
children 3c5aaea9638f
line wrap: on
line diff
--- 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: