changeset 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 bec815f991b0
children 9f499d28efb4
files tests/printenv.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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: