D3598: py3: add b'' prefixes in tests/test-pager.t

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Sat May 19 15:39:15 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG5a3feb2bc9dd: py3: add b'' prefixes in tests/test-pager.t (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3598?vs=8769&id=8803

REVISION DETAIL
  https://phab.mercurial-scm.org/D3598

AFFECTED FILES
  tests/test-pager.t

CHANGE DETAILS

diff --git a/tests/test-pager.t b/tests/test-pager.t
--- a/tests/test-pager.t
+++ b/tests/test-pager.t
@@ -260,9 +260,9 @@
   > from mercurial import commands, registrar
   > cmdtable = {}
   > command = registrar.command(cmdtable)
-  > @command(b'fortytwo', [], 'fortytwo', norepo=True)
+  > @command(b'fortytwo', [], b'fortytwo', norepo=True)
   > def fortytwo(ui, *opts):
-  >     ui.write('42\n')
+  >     ui.write(b'42\n')
   >     return 42
   > EOF
 
@@ -377,8 +377,8 @@
   $ cat > $TESTTMP/pushbufferpager.py <<EOF
   > def uisetup(ui):
   >     ui.pushbuffer()
-  >     ui.pager('mycmd')
-  >     ui.write('content\n')
+  >     ui.pager(b'mycmd')
+  >     ui.write(b'content\n')
   >     ui.write(ui.popbuffer())
   > EOF
 



To: pulkit, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list