py3: use print as a function in tests/test-hgrc.t
authorPulkit Goyal <7895pulkit@gmail.com>
Tue, 27 Feb 2018 14:49:05 +0530
changeset 36460 432b85a46717
parent 36459 580f75f70f39
child 36461 51a9f0246931
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
tests/test-hgrc.t
--- 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