[PATCH 2 of 6] py3: make i18n/posplit use print_function

Pulkit Goyal 7895pulkit at gmail.com
Thu May 12 18:07:20 EDT 2016


# HG changeset patch
# User Pulkit Goyal <7895pulkit at gmail.com>
# Date 1463089170 -19800
#      Fri May 13 03:09:30 2016 +0530
# Node ID 996bc5cc90f3564ee364fdfefff7f9bde240245e
# Parent  756ec24e1c26add81f41a132f436425ebe5f95d2
py3: make i18n/posplit use print_function

diff --git a/i18n/posplit b/i18n/posplit
--- a/i18n/posplit
+++ b/i18n/posplit
@@ -5,7 +5,7 @@
 # license: MIT/X11/Expat
 #
 
-from __future__ import absolute_import
+from __future__ import absolute_import, print_function
 
 import polib
 import re
@@ -69,8 +69,8 @@
                             continue
                         else:
                             # lines following directly, unexpected
-                            print 'Warning: text follows line with directive' \
-                                  ' %s' % directive
+                            print('Warning: text follows line with directive' \
+                                  ' %s' % directive)
                     comment = 'do not translate: .. %s::' % directive
                     if not newentry.comment:
                         newentry.comment = comment


More information about the Mercurial-devel mailing list