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, 7:30 a.m.
Message ID <differential-rev-PHID-DREV-jh7uzrb67ig4holtqth6-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/29606/
State Superseded
Headers show

Comments

phabricator - March 19, 2018, 7:30 a.m.
pulkit created this revision.
Herald added a reviewer: durin42.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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
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 ..