changeset 38073:1a09886ab03a

py3: add b'' prefixes in tests/test-hgrc.t # skip-blame because just b'' prefixes Differential Revision: https://phab.mercurial-scm.org/D3597
author Pulkit Goyal <7895pulkit@gmail.com>
date Sat, 19 May 2018 18:30:20 +0530
parents d1a49a94c324
children 5a3feb2bc9dd
files tests/test-hgrc.t
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-hgrc.t	Sat May 19 18:28:52 2018 +0530
+++ b/tests/test-hgrc.t	Sat May 19 18:30:20 2018 +0530
@@ -199,10 +199,10 @@
   $ cat > plain.py <<EOF
   > from mercurial import commands, extensions
   > def _config(orig, ui, repo, *values, **opts):
-  >     ui.write('plain: %r\n' % ui.plain())
+  >     ui.write(b'plain: %r\n' % ui.plain())
   >     return orig(ui, repo, *values, **opts)
   > def uisetup(ui):
-  >     extensions.wrapcommand(commands.table, 'config', _config)
+  >     extensions.wrapcommand(commands.table, b'config', _config)
   > EOF
   $ echo "[extensions]" >> $HGRC
   $ echo "plain=./plain.py" >> $HGRC