Mercurial > hg
changeset 38072:d1a49a94c324
py3: add b'' prefixes in tests/test-extensions-afterloaded.t
# skip-blame because just b'' prefixes
Differential Revision: https://phab.mercurial-scm.org/D3596
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sat, 19 May 2018 18:28:52 +0530 |
parents | 6e713711331b |
children | 1a09886ab03a |
files | tests/test-extensions-afterloaded.t |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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