tests/dummyssh
changeset 36121 3a763d7f40e1
parent 35570 3e3f4c03876b
child 45830 c102b704edb5
--- a/tests/dummyssh	Sun Feb 11 18:58:45 2018 -0800
+++ b/tests/dummyssh	Sun Feb 11 19:11:17 2018 -0800
@@ -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':