Patchwork D2892: py3: use print as a function in tests/test-narrow-clone-non-narrow-server.t

login
register
mail settings
Submitter phabricator
Date March 19, 2018, 1:46 p.m.
Message ID <42a566bda3d2a607666b2426a72b1760@localhost.localdomain>
Download mbox | patch
Permalink /patch/29624/
State Not Applicable
Headers show

Comments

phabricator - March 19, 2018, 1:46 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGf4c7dc24e889: py3: use print as a function in tests/test-narrow-clone-non-narrow-server.t (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2892?vs=7097&id=7110

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

AFFECTED FILES
  tests/test-narrow-clone-non-narrow-server.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-narrow-clone-non-narrow-server.t b/tests/test-narrow-clone-non-narrow-server.t
--- a/tests/test-narrow-clone-non-narrow-server.t
+++ b/tests/test-narrow-clone-non-narrow-server.t
@@ -19,7 +19,7 @@ 
 
 Verify that narrow is advertised in the bundle2 capabilities:
   $ echo hello | hg -R . serve --stdio | \
-  >   $PYTHON -c "import sys, urllib; print urllib.unquote_plus(list(sys.stdin)[1])" | grep narrow
+  >   $PYTHON -c "from __future__ import print_function; import sys, urllib; print(urllib.unquote_plus(list(sys.stdin)[1]))" | grep narrow
   narrow=v0
 
   $ cd ..