py3: add b'' prefixes in tests/test-extensions-afterloaded.t
authorPulkit Goyal <7895pulkit@gmail.com>
Sat, 19 May 2018 18:28:52 +0530
changeset 38072 d1a49a94c324
parent 38071 6e713711331b
child 38073 1a09886ab03a
py3: add b'' prefixes in tests/test-extensions-afterloaded.t # skip-blame because just b'' prefixes Differential Revision: https://phab.mercurial-scm.org/D3596
tests/test-extensions-afterloaded.t
--- a/tests/test-extensions-afterloaded.t	Sat May 19 18:27:57 2018 +0530
+++ b/tests/test-extensions-afterloaded.t	Sat May 19 18:28:52 2018 +0530
@@ -3,16 +3,16 @@
   $ cat > foo.py <<EOF
   > from mercurial import extensions
   > def uisetup(ui):
-  >     ui.write("foo.uisetup\\n")
+  >     ui.write(b"foo.uisetup\\n")
   >     ui.flush()
   >     def bar_loaded(loaded):
-  >         ui.write("foo: bar loaded: %r\\n" % (loaded,))
+  >         ui.write(b"foo: bar loaded: %r\\n" % (loaded,))
   >         ui.flush()
-  >     extensions.afterloaded('bar', bar_loaded)
+  >     extensions.afterloaded(b'bar', bar_loaded)
   > EOF
   $ cat > bar.py <<EOF
   > def uisetup(ui):
-  >     ui.write("bar.uisetup\\n")
+  >     ui.write(b"bar.uisetup\\n")
   >     ui.flush()
   > EOF
   $ basepath=`pwd`
@@ -72,9 +72,9 @@
 
   $ cd ..
   $ cat > minvers.py <<EOF
-  > minimumhgversion = '9999.9999'
+  > minimumhgversion = b'9999.9999'
   > def uisetup(ui):
-  >     ui.write("minvers.uisetup\\n")
+  >     ui.write(b"minvers.uisetup\\n")
   >     ui.flush()
   > EOF
   $ hg init minversion