py3: add b'' prefixes to make values bytes
authorPulkit Goyal <7895pulkit@gmail.com>
Sat, 14 Apr 2018 02:06:03 +0530
changeset 37668 2a42ca2679e2
parent 37667 701c261fba83
child 37669 1cb54e6193a6
py3: add b'' prefixes to make values bytes # skip-blame beacuse just b'' prefixes Differential Revision: https://phab.mercurial-scm.org/D3329
tests/test-clone-cgi.t
tests/test-clone.t
--- a/tests/test-clone-cgi.t	Sat Apr 14 02:04:19 2018 +0530
+++ b/tests/test-clone-cgi.t	Sat Apr 14 02:06:03 2018 +0530
@@ -17,7 +17,7 @@
   > from mercurial import demandimport; demandimport.enable()
   > from mercurial.hgweb import hgweb
   > from mercurial.hgweb import wsgicgi
-  > application = hgweb("test", "Empty test repository")
+  > application = hgweb(b"test", b"Empty test repository")
   > wsgicgi.launch(application)
   > HGWEB
   $ chmod 755 hgweb.cgi
--- a/tests/test-clone.t	Sat Apr 14 02:04:19 2018 +0530
+++ b/tests/test-clone.t	Sat Apr 14 02:06:03 2018 +0530
@@ -559,8 +559,8 @@
   $ cat <<EOF > simpleclone.py
   > from mercurial import ui, hg
   > myui = ui.ui.load()
-  > repo = hg.repository(myui, 'a')
-  > hg.clone(myui, {}, repo, dest="ua")
+  > repo = hg.repository(myui, b'a')
+  > hg.clone(myui, {}, repo, dest=b"ua")
   > EOF
 
   $ $PYTHON simpleclone.py
@@ -573,8 +573,8 @@
   > from mercurial import ui, hg, extensions
   > myui = ui.ui.load()
   > extensions.loadall(myui)
-  > repo = hg.repository(myui, 'a')
-  > hg.clone(myui, {}, repo, dest="ua", branch=["stable",])
+  > repo = hg.repository(myui, b'a')
+  > hg.clone(myui, {}, repo, dest=b"ua", branch=[b"stable",])
   > EOF
 
   $ $PYTHON branchclone.py