##// END OF EJS Templates
lsprof: use print function
Gregory Szorc -
r27617:b1a59b80 default
parent child Browse files
Show More
@@ -1,4 +1,4 b''
1 from __future__ import absolute_import
1 from __future__ import absolute_import, print_function
2
2
3 import _lsprof
3 import _lsprof
4 import sys
4 import sys
@@ -113,7 +113,7 b" if __name__ == '__main__':"
113 import os
113 import os
114 sys.argv = sys.argv[1:]
114 sys.argv = sys.argv[1:]
115 if not sys.argv:
115 if not sys.argv:
116 print >> sys.stderr, "usage: lsprof.py <script> <arguments...>"
116 print("usage: lsprof.py <script> <arguments...>", file=sys.stderr)
117 sys.exit(2)
117 sys.exit(2)
118 sys.path.insert(0, os.path.abspath(os.path.dirname(sys.argv[0])))
118 sys.path.insert(0, os.path.abspath(os.path.dirname(sys.argv[0])))
119 stats = profile(execfile, sys.argv[0], globals(), locals())
119 stats = profile(execfile, sys.argv[0], globals(), locals())
@@ -100,7 +100,6 b''
100 i18n/polib.py not using absolute_import
100 i18n/polib.py not using absolute_import
101 mercurial/cmdutil.py not using absolute_import
101 mercurial/cmdutil.py not using absolute_import
102 mercurial/commands.py not using absolute_import
102 mercurial/commands.py not using absolute_import
103 mercurial/lsprof.py requires print_function
104 mercurial/lsprofcalltree.py requires print_function
103 mercurial/lsprofcalltree.py requires print_function
105 mercurial/mail.py requires print_function
104 mercurial/mail.py requires print_function
106 setup.py not using absolute_import
105 setup.py not using absolute_import
General Comments 0
You need to be logged in to leave comments. Login now