D4461: py3: use print as a function in tests/test-hgweb.t

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Tue Sep 4 12:30:05 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG8466c6075161: py3: use print as a function in tests/test-hgweb.t (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4461?vs=10740&id=10751

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

AFFECTED FILES
  tests/test-hgweb.t

CHANGE DETAILS

diff --git a/tests/test-hgweb.t b/tests/test-hgweb.t
--- a/tests/test-hgweb.t
+++ b/tests/test-hgweb.t
@@ -329,7 +329,7 @@
 
 Test the access/error files are opened in append mode
 
-  $ $PYTHON -c "print len(open('access.log', 'rb').readlines()), 'log lines written'"
+  $ $PYTHON -c "from __future__ import print_function; print(len(open('access.log', 'rb').readlines()), 'log lines written')"
   14 log lines written
 
 static file



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


More information about the Mercurial-devel mailing list