changeset 36460:432b85a46717

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
author Pulkit Goyal <7895pulkit@gmail.com>
date Tue, 27 Feb 2018 14:49:05 +0530
parents 580f75f70f39
children 51a9f0246931
files tests/test-hgrc.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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