D3725: tests: fix printenv script on Python 3
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Wed Jun 13 01:09:11 UTC 2018
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D3725
AFFECTED FILES
tests/printenv.py
CHANGE DETAILS
diff --git a/tests/printenv.py b/tests/printenv.py
--- a/tests/printenv.py
+++ b/tests/printenv.py
@@ -26,6 +26,7 @@
exitcode = 0
out = sys.stdout
+out = getattr(out, 'buffer', out)
name = sys.argv[1]
if len(sys.argv) > 2:
To: durin42, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list