mercurial/lsprof.py
changeset 27617 b1a59b80e1a3
parent 27061 9c75daf89450
child 35836 d4e5b2653693
--- 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())