From patchwork Tue Feb 13 02:48:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D2170: py3: make dummyssh compatible with Python 3 From: phabricator X-Patchwork-Id: 27771 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Tue, 13 Feb 2018 02:48:20 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHG9996ec844c1e: py3: make dummyssh compatible with Python 3 (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D2170?vs=5471&id=5593 REVISION DETAIL https://phab.mercurial-scm.org/D2170 AFFECTED FILES tests/dummyssh CHANGE DETAILS To: indygreg, #hg-reviewers, pulkit, durin42 Cc: mercurial-devel diff --git a/tests/dummyssh b/tests/dummyssh --- a/tests/dummyssh +++ b/tests/dummyssh @@ -15,8 +15,8 @@ log = open("dummylog", "ab") log.write(b"Got arguments") for i, arg in enumerate(sys.argv[1:]): - log.write(b" %d:%s" % (i + 1, arg)) -log.write("\n") + log.write(b" %d:%s" % (i + 1, arg.encode('latin1'))) +log.write(b"\n") log.close() hgcmd = sys.argv[2] if os.name == 'nt':