[PATCH 15 of 21 WIP-PY3K] dispatch: convert to print_function

Matthew Turk matthewturk at gmail.com
Mon Oct 12 16:24:59 CDT 2015


# HG changeset patch
# User Matthew Turk <matthewturk at gmail.com>
# Date 1444684257 18000
#      Mon Oct 12 16:10:57 2015 -0500
# Node ID 9c4bc93e95dd668b4458a1e6a209901b5587ee44
# Parent  6a2fc2620905dbfd5aec3acc67183f8e8d7b9593
dispatch: convert to print_function

diff -r 6a2fc2620905 -r 9c4bc93e95dd mercurial/dispatch.py
--- a/mercurial/dispatch.py	Mon Oct 12 16:09:42 2015 -0500
+++ b/mercurial/dispatch.py	Mon Oct 12 16:10:57 2015 -0500
@@ -6,6 +6,7 @@
 # GNU General Public License version 2 or any later version.
 
 from __future__ import absolute_import
+from __future__ import print_function
 
 import atexit
 import difflib
@@ -976,9 +977,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):


More information about the Mercurial-devel mailing list