py3: use print as a function in tests/test-hgrc.t
print was made a function in Python 3.
Differential Revision: https://phab.mercurial-scm.org/D2480
--- a/tests/test-hgrc.t Tue Feb 27 14:46:35 2018 +0530
+++ b/tests/test-hgrc.t Tue Feb 27 14:49:05 2018 +0530
@@ -58,7 +58,7 @@
unexpected leading whitespace
[255]
- $ $PYTHON -c "print '[foo]\nbar = a\n b\n c \n de\n fg \nbaz = bif cb \n'" \
+ $ $PYTHON -c "from __future__ import print_function; print('[foo]\nbar = a\n b\n c \n de\n fg \nbaz = bif cb \n')" \
> > $HGRC
$ hg showconfig foo
foo.bar=a\nb\nc\nde\nfg