# HG changeset patch # User Gregory Szorc # Date 1434948341 25200 # Node ID 4030d3b7995321769242e5f656c0918dc995820e # Parent 1d7e824ad0930da60c8a000baf2790ace6579e79 dispatch: use print function Python 3 doesn't have a print statement. diff -r 1d7e824ad093 -r 4030d3b79953 mercurial/dispatch.py --- a/mercurial/dispatch.py Fri Jan 01 16:59:13 2016 +0000 +++ b/mercurial/dispatch.py Sun Jun 21 21:45:41 2015 -0700 @@ -5,7 +5,7 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. -from __future__ import absolute_import +from __future__ import absolute_import, print_function import atexit import difflib @@ -970,9 +970,9 @@ finally: thread.stop() thread.join() - print 'Collected %d stack frames (%d unique) in %2.2f seconds.' % ( + print('Collected %d stack frames (%d unique) in %2.2f seconds.' % ( time.clock() - start_time, thread.num_frames(), - thread.num_frames(unique=True)) + thread.num_frames(unique=True))) def statprofile(ui, func, fp): diff -r 1d7e824ad093 -r 4030d3b79953 tests/test-check-py3-compat.t --- a/tests/test-check-py3-compat.t Fri Jan 01 16:59:13 2016 +0000 +++ b/tests/test-check-py3-compat.t Sun Jun 21 21:45:41 2015 -0700 @@ -100,7 +100,6 @@ i18n/polib.py not using absolute_import mercurial/cmdutil.py not using absolute_import mercurial/commands.py not using absolute_import - mercurial/dispatch.py requires print_function mercurial/keepalive.py requires print_function mercurial/lsprof.py requires print_function mercurial/lsprofcalltree.py requires print_function