py3: use print as a function in tests/test-narrow-clone-non-narrow-server.t
authorPulkit Goyal <7895pulkit@gmail.com>
Mon, 19 Mar 2018 00:04:38 +0530
changeset 36993 f4c7dc24e889
parent 36992 ccc2d5f10421
child 36994 0baf0e3ee569
py3: use print as a function in tests/test-narrow-clone-non-narrow-server.t Differential Revision: https://phab.mercurial-scm.org/D2892
tests/test-narrow-clone-non-narrow-server.t
--- a/tests/test-narrow-clone-non-narrow-server.t	Sun Mar 04 16:23:03 2018 -0500
+++ b/tests/test-narrow-clone-non-narrow-server.t	Mon Mar 19 00:04:38 2018 +0530
@@ -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 ..