tests: make python oneliner portable to python 3 in remotefilelog test
authorAugie Fackler <augie@google.com>
Wed, 16 Jan 2019 10:58:31 -0500
changeset 41252 a495435d980e
parent 41251 beb0d944a99b
child 41253 29996f6c2687
tests: make python oneliner portable to python 3 in remotefilelog test Differential Revision: https://phab.mercurial-scm.org/D5602
tests/test-remotefilelog-http.t
--- a/tests/test-remotefilelog-http.t	Wed Jan 16 10:58:09 2019 -0500
+++ b/tests/test-remotefilelog-http.t	Wed Jan 16 10:58:31 2019 -0500
@@ -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