diff tests/test-narrow-clone-non-narrow-server.t @ 36993:f4c7dc24e889

py3: use print as a function in tests/test-narrow-clone-non-narrow-server.t Differential Revision: https://phab.mercurial-scm.org/D2892
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 19 Mar 2018 00:04:38 +0530
parents c18ae7a07019
children afe624d78d43
line wrap: on
line diff
--- 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 ..