Mercurial > hg
changeset 38075:fd8eedcc3fd2
py3: add b'' prefixes in tests/test-profile.t
# skip-blame because just b'' prefixes
Differential Revision: https://phab.mercurial-scm.org/D3599
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sat, 19 May 2018 18:32:24 +0530 |
parents | 5a3feb2bc9dd |
children | 34592dd3bfa2 |
files | tests/test-profile.t |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-profile.t Sat May 19 18:31:15 2018 +0530 +++ b/tests/test-profile.t Sat May 19 18:32:24 2018 +0530 @@ -69,7 +69,7 @@ > from mercurial import registrar, commands > cmdtable = {} > command = registrar.command(cmdtable) - > @command(b'sleep', [], 'hg sleep') + > @command(b'sleep', [], b'hg sleep') > def sleep(ui, *args, **kwargs): > time.sleep(0.1) > EOF @@ -123,13 +123,13 @@ > yield > print('fooprof: end profile') > def extsetup(ui): - > ui.write('fooprof: loaded\n') + > ui.write(b'fooprof: loaded\n') > EOF $ cat > otherextension.py <<EOF > from __future__ import absolute_import > def extsetup(ui): - > ui.write('otherextension: loaded\n') + > ui.write(b'otherextension: loaded\n') > EOF $ hg init b