mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
dispatch: use print function
Python 3 doesn't have a print statement.
This commit is contained in:
parent
c09ee5764f
commit
edf696301c
@ -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 @@ def flameprofile(ui, func, fp):
|
||||
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):
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user