Mercurial > public > mercurial-scm > hg-stable
diff mercurial/lsprof.py @ 27617:b1a59b80e1a3
lsprof: use print function
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 02 Jan 2016 11:40:53 -0800 |
parents | 9c75daf89450 |
children | d4e5b2653693 |
line wrap: on
line diff
--- a/mercurial/lsprof.py Sun Jun 21 23:14:54 2015 -0700 +++ b/mercurial/lsprof.py Sat Jan 02 11:40:53 2016 -0800 @@ -1,4 +1,4 @@ -from __future__ import absolute_import +from __future__ import absolute_import, print_function import _lsprof import sys @@ -113,7 +113,7 @@ import os sys.argv = sys.argv[1:] if not sys.argv: - print >> sys.stderr, "usage: lsprof.py <script> <arguments...>" + print("usage: lsprof.py <script> <arguments...>", file=sys.stderr) sys.exit(2) sys.path.insert(0, os.path.abspath(os.path.dirname(sys.argv[0]))) stats = profile(execfile, sys.argv[0], globals(), locals())