D5602: tests: make python oneliner portable to python 3 in remotefilelog test

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Wed Jan 16 16:16:22 UTC 2019


durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  tests/test-remotefilelog-http.t

CHANGE DETAILS

diff --git a/tests/test-remotefilelog-http.t b/tests/test-remotefilelog-http.t
--- a/tests/test-remotefilelog-http.t
+++ b/tests/test-remotefilelog-http.t
@@ -15,7 +15,7 @@
 
 Build a query string for later use:
   $ GET=`hg debugdata -m 0 | $PYTHON -c \
-  > 'import sys ; print [("?cmd=x_rfl_getfile&file=%s&node=%s" % tuple(s.split("\0"))) for s in sys.stdin.read().splitlines()][0]'`
+  > 'import sys ; print([("?cmd=x_rfl_getfile&file=%s&node=%s" % tuple(s.split("\0"))) for s in sys.stdin.read().splitlines()][0])'`
 
   $ cd ..
   $ cat hg1.pid >> $DAEMON_PIDS



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


More information about the Mercurial-devel mailing list