changeset 39433:8466c6075161

py3: use print as a function in tests/test-hgweb.t Differential Revision: https://phab.mercurial-scm.org/D4461
author Pulkit Goyal <pulkit@yandex-team.ru>
date Tue, 04 Sep 2018 17:57:49 +0300
parents 16c27483f50f
children 4971c9724206
files tests/test-hgweb.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-hgweb.t	Tue Sep 04 17:58:39 2018 +0300
+++ b/tests/test-hgweb.t	Tue Sep 04 17:57:49 2018 +0300
@@ -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