Patchwork D2480: py3: use print as a function in tests/test-hgrc.t

login
register
mail settings
Submitter phabricator
Date Feb. 27, 2018, 9:48 a.m.
Message ID <differential-rev-PHID-DREV-ghtb66qgtmewyeznxmik-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/28445/
State Superseded
Headers show

Comments

phabricator - Feb. 27, 2018, 9:48 a.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  print was made a function in Python 3.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  tests/test-hgrc.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-hgrc.t b/tests/test-hgrc.t
--- a/tests/test-hgrc.t
+++ b/tests/test-hgrc.t
@@ -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