Mercurial > public > mercurial-scm > hg
diff mercurial/dispatch.py @ 27615:4030d3b79953
dispatch: use print function
Python 3 doesn't have a print statement.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 21 Jun 2015 21:45:41 -0700 |
parents | 1c1216182dc1 |
children | b3376fba4ab9 |
line wrap: on
line diff
--- 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):