D2170: py3: make dummyssh compatible with Python 3
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Mon Feb 12 21:48:20 EST 2018
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
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':
To: indygreg, #hg-reviewers, pulkit, durin42
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list