tests/dummyssh
changeset 35570 3e3f4c03876b
parent 31007 bfdb0741f9f2
child 36121 3a763d7f40e1
--- a/tests/dummyssh	Wed Jan 10 08:53:22 2018 -0800
+++ b/tests/dummyssh	Fri Dec 29 03:37:36 2017 +0530
@@ -13,9 +13,9 @@
 os.environ["SSH_CLIENT"] = "%s 1 2" % os.environ.get('LOCALIP', '127.0.0.1')
 
 log = open("dummylog", "ab")
-log.write("Got arguments")
+log.write(b"Got arguments")
 for i, arg in enumerate(sys.argv[1:]):
-    log.write(" %d:%s" % (i + 1, arg))
+    log.write(b" %d:%s" % (i + 1, arg))
 log.write("\n")
 log.close()
 hgcmd = sys.argv[2]